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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not use str_start_with
We are not loading polyfill here so str_starts_with is not available PHP <8.0
  • Loading branch information
hluup committed Aug 13, 2021
commit 94d843f7669207445ba5f694858c324d9cc4090c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
continue;
}

if (str_starts_with($argumentOrOption, '-')) {
if (0 === strpos($argumentOrOption, '-')) {
$config['verbose_output'] = true;
} else {
$config['locale_to_analyze'] = $argumentOrOption;
Expand Down
0