phpstan-src
phpstan-src copied to clipboard
Fix `get_class` return type
Closes https://github.com/phpstan/phpstan-src/pull/2350 Closes https://github.com/phpstan/phpstan/issues/4890
I feel like a proper solution would be a new
Typemethod. Basically the opposite ofgetClassStringObjectType. That one goes fromclass-string<Foo>toFoo.We need to go from object
Footoclass-string<Foo>.
I introduced getClassStringType(), feel free to challenge the name :)
This pull request has been marked as ready for review.