-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
phpstan/phpstan-src
#3752Labels
Milestone
Description
Bug report
given code:
final class SkipFirstClassCallableInDo
{
public function getSubscribedEvents()
{
do {
} while ($this->textElement(...));
}
public function textElement()
{
return 1;
}
}it cause crash:
Call to undefined method PHPStan\Node\Printer\Printer::pPHPStan_Node_MethodCallableNode()
Code snippet that reproduces the problem
https://phpstan.org/r/178ac73a-e99c-4961-957f-a3c6062d7c44
Expected output
it should not crash.
Did PHPStan help you today? Did it make you happy in any way?
No response
Reactions are currently unavailable