We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6a575 commit ad2bbebCopy full SHA for ad2bbeb
src/Testing/TypeInferenceTestCase.php
@@ -41,8 +41,8 @@
41
use function is_string;
42
use function preg_match;
43
use function sprintf;
44
+use function str_starts_with;
45
use function stripos;
-use function strpos;
46
use function strtolower;
47
use function version_compare;
48
use const PHP_VERSION;
@@ -424,7 +424,7 @@ private static function isFileLintSkipped(string $file): bool
424
}
425
426
// ignore shebang line
427
- if (strpos($firstLine, '#!') === 0) {
+ if (str_starts_with($firstLine, '#!')) {
428
$firstLine = fgets($f);
429
if ($firstLine === false) {
430
return false;
0 commit comments