8000 Do not use str_starts_with in translation-status.php by hluup · Pull Request #42533 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Do not use str_starts_with in translation-status.php #42533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

hluup
Copy link
Contributor
@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
0