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 31aa1ce
Browse filesBrowse the repository at this point in the historyBrowse files
Check the statement type in the native StatementsHandler::processStatementStep()
The native processStatementStep() used the elements of the caller's
statement list as objects without a check and crashed on anything else,
where the twin's `Node\Stmt $stmt` parameter throws a TypeError. Throw
the same TypeError.
The misuse-parity section of smoke.php gains a child-process harness for
the engine classes (they cannot be declared next to their twins): the
same probes run once over the PHP classes and once over the native ones
under their real names, and their outcomes are compared.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Fdg8n3eEi4ZoXa4dA2k4A
if (UNEXPECTED(Z_TYPE_P(stmt) != IS_OBJECT || !instanceof_function(Z_OBJCE_P(stmt), stmtCe))) {
1113
+
zend_type_error("PHPStan\\Analyser\\StatementsHandler::processStatementStep(): Argument #5 ($stmt) must be of type PhpParser\\Node\\Stmt, %s given", zend_zval_value_name(stmt));
0 commit comments