Fix lineno for cpp assignment

We previously changed the lineno of the property to the cpp argument, but now
also update the lineno for RECV and ASSIGN_OBJ. No test because we don't have a
way to enable lineno's in the opcode dump, and this is not easily testable
through error messages.
This commit is contained in:
Ilija Tovilo 2025-07-17 14:06:02 +02:00
parent a59caa3c33
commit 0e80be83b3
No known key found for this signature in database
GPG key ID: 115CEA7A713E12E9

View file

@ -7921,6 +7921,8 @@ static void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32
continue;
}
CG(zend_lineno) = param_ast->lineno;
/* Emit $this->prop = $prop for promoted properties. */
zend_string *name = zend_ast_get_str(param_ast->child[1]);
znode name_node, value_node;