-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
phpstan/phpstan-src
#3362Labels
Description
Feature request
repro: https://phpstan.org/r/791bb517-28cf-4af3-a2ad-1b4d33f7cddc
expected output:
Line Error
5 Method A::x() return type has no value type specified in iterable type array.
5 Method class@anonymous/tmp.php:16::x() return type has no value type specified in iterable type array.
-5 Method class@anonymous/tmp.php:21::x() return type has no value type specified in iterable type array.
+5 Method stdClass@anonymous/tmp.php:21::x() return type has no value type specified in iterable type array.When an anonymous class name is dumped, parent class name like stdClass@anonymous should be dumped instead of class@anonymous. This is also how php-src dumps the anonymous classes: https://3v4l.org/3jKZr
Reactions are currently unavailable