Skip to content
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

Fix #8743 #8751

Merged
merged 1 commit into from Nov 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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