Skip to content
Permalink
Browse files

Allow ImplicitToStringCast when sending an object to scalar-accepting…

… param
  • Loading branch information...
muglug committed Jun 15, 2019
1 parent 5a64e97 commit afc2f18d18d9c22e3a97704a7208f3946a5a48a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Analyzer/TypeAnalyzer.php
@@ -1188,7 +1188,7 @@ public static function isAtomicContainedBy(
return false;
}
if ($container_type_part instanceof TString
if (($container_type_part instanceof TString || $container_type_part instanceof TScalar)
&& $input_type_part instanceof TNamedObject
) {
// check whether the object has a __toString method

0 comments on commit afc2f18

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