Skip to content

Commit

Permalink
Merge pull request #8751 from orklah/str_starts_with
Browse files Browse the repository at this point in the history
Fix #8743
  • Loading branch information
orklah committed Nov 24, 2022
2 parents 8f39de9 + 203d2c2 commit 40df3f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Internal/Type/TypeParser.php
Expand Up @@ -90,7 +90,6 @@
use function preg_match;
use function preg_replace;
use function reset;
use function str_starts_with;
use function stripslashes;
use function strlen;
use function strpos;
Expand Down Expand Up @@ -1472,7 +1471,7 @@ private static function getTypeFromKeyedArrayTree(
return new TObjectWithProperties($properties, [], [], $from_docblock);
}

$callable = str_starts_with($type, 'callable-');
$callable = strpos($type, 'callable-') === 0;
$class = TKeyedArray::class;
if ($callable) {
$class = TCallableKeyedArray::class;
Expand Down

0 comments on commit 40df3f3

Please sign in to comment.