Open SignpostMarv opened 5 years ago
At least it took your attention! 😄
@SignpostMarv PHPStan now reports different result with your code snippet:
@@ @@
-8: Function foo() has parameter $val with no typehint specified.
+8: Function foo() has parameter $val with no value type specified in iterable type array.
checked w/ phpstan 0.11.2 & phpstan.org
Summary of a problem or a feature request
Accidentally added a duplicate & conflicting param hint to a method & rather than flagging up a duplicate typehint, phpstan reports no typehint detected.
Code snippet that reproduces the problem
Expected output
Expecting phpstan to report that function foo() has duplicate typehints- it'd be nice if the typehints were also reported as being conflicting (as opposed to identical-after-normalisation), but that's not essential.