You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f935366
Browse filesBrowse the repository at this point in the historyBrowse files
Do not extend Expr in the isset/empty/coalesce rule-facing virtual nodes
IssetExpressionNode, EmptyExpressionNode and CoalesceExpressionNode are
emitted to node callbacks for their rules, and third-party collectors
and rules commonly call $scope->getType() on every expression they
receive - which crashed in the type-cache key printer, since these
nodes have no printer method:
Call to undefined method Printer::pPHPStan_Node_IssetExpressionNode()
Rule-facing virtual nodes extend NodeAbstract (MatchExpressionNode,
BooleanAndNode, ...) precisely so they can never reach getType(); these
three now follow. callNodeCallbackWithExpression() accepts any Node -
it only adjusts the scope for deep contexts before emitting.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DaBZjgksga4c5s6Q9FniY7
0 commit comments