Skip to content
Permalink
Browse files

Fix comparison

  • Loading branch information
muglug committed Jan 7, 2020
1 parent 1f777be commit 8f3d325bbc290c0c0ea1304bb8ff5183e45e29c9
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Psalm/Internal/Type/AssertionReconciler.php
@@ -1916,7 +1916,9 @@ private static function reconcileCallable(
&& $codebase->methodExists($type->value . '::__invoke')
) {
$callable_types[] = $type;
} elseif (get_class($type) === TString::class) {
} elseif (get_class($type) === TString::class
|| get_class($type) === Type\Atomic\TNonEmptyString::class
) {
$callable_types[] = new Type\Atomic\TCallableString();
$did_remove_type = true;
} elseif (get_class($type) === Type\Atomic\TLiteralString::class

0 comments on commit 8f3d325

Please sign in to comment.
You can’t perform that action at this time.