Skip to content

Commit 40df3f3

Browse files
authored
Merge pull request #8751 from orklah/str_starts_with
Fix #8743
2 parents 8f39de9 + 203d2c2 commit 40df3f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Psalm/Internal/Type/TypeParser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
use function preg_match;
9191
use function preg_replace;
9292
use function reset;
93-
use function str_starts_with;
9493
use function stripslashes;
9594
use function strlen;
9695
use function strpos;
@@ -1472,7 +1471,7 @@ private static function getTypeFromKeyedArrayTree(
14721471
return new TObjectWithProperties($properties, [], [], $from_docblock);
14731472
}
14741473

1475-
$callable = str_starts_with($type, 'callable-');
1474+
$callable = strpos($type, 'callable-') === 0;
14761475
$class = TKeyedArray::class;
14771476
if ($callable) {
14781477
$class = TCallableKeyedArray::class;

0 commit comments

Comments
 (0)