-
-
Notifications
You must be signed in to change notification settings - Fork 947
Dump parent class name if anonymous #8740
Copy link
Copy link
Closed
phpstan/phpstan-src
#3362Labels
Description
Feature request
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