Skip to content

Commit

Permalink
Fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jan 7, 2020
1 parent 1f777be commit 8f3d325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Psalm/Internal/Type/AssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f3d325

Please sign in to comment.