Skip to content

Conversation

samsonasik
Copy link
Contributor

@samsonasik
Copy link
Contributor Author

Ready to merge 👍

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. MethodCallableNode is not the only one with this problem. There's also FunctionCallableNode, InstantiationCallableNode, StaticMethodCallableNode. Please reproduce and fix issues with them too.
  2. Crashing examples have regression tests in AnalyserIntegrationTest, not in a specific rule. Because we're not fixing an error in a specific rule.
  3. Printing of custom nodes is fixed by adding a method on PHPStan\Node\Printer\Printer, not by modifying ExprPrinter.

Thanks.

@samsonasik
Copy link
Contributor Author

I will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crash on first class callable as conditional do while

2 participants