Skip to content

Conversation

@hluup
Copy link

@hluup hluup commented Aug 13, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

translation-status.php is a standalone script that might be run with PHP version that is less than <8.0 where str_starts_with is not available. I propose that we revert the change that was made in #41576 instead of trying to load the polyfill somehow.

We are not loading polyfill here so str_starts_with is not available PHP <8.0
@carsonbot carsonbot added this to the 4.4 milestone Aug 13, 2021
@hluup hluup changed the title Do not use str_start_with Do not use str_start_with in translation-status.php Aug 13, 2021
@hluup hluup changed the title Do not use str_start_with in translation-status.php [Translation] Do not use str_start_with in translation-status.php Aug 13, 2021
@hluup hluup changed the title [Translation] Do not use str_start_with in translation-status.php [Translation] Do not use str_starts_with in translation-status.php Aug 13, 2021
@carsonbot carsonbot changed the title [Translation] Do not use str_starts_with in translation-status.php Do not use str_starts_with in translation-status.php Aug 13, 2021
@fabpot
Copy link
Member

fabpot commented Aug 13, 2021

Thank you @hluup.

@fabpot fabpot merged commit b2a24b1 into symfony:4.4 Aug 13, 2021
@hluup hluup deleted the translation_status branch August 14, 2021 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants