8000 Do not use str_start_with · symfony/symfony@94d843f · GitHub
[go: up one dir, main page]

Skip to content

Commit 94d843f

Browse files
committed
Do not use str_start_with
We are not loading polyfill here so str_starts_with is not available PHP <8.0
1 parent 2e10dd5 commit 94d843f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Translation/Resources/bin/translation-status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
continue;
6363
}
6464

65-
if (str_starts_with($argumentOrOption, '-')) {
65+
if (0 === strpos($argumentOrOption, '-')) {
6666
$config['verbose_output'] = true;
6767
} else {
6868
$config['locale_to_analyze'] = $argumentOrOption;

0 commit comments

Comments
 (0)
0