[php-src] PR #21993: Fix GH-14874: report correct line for property/const variance errors
| From: | iliaal | Date: | Sat, 09 May 2026 23:53:05 +0000 |
| Subject: | [php-src] PR #21993: Fix GH-14874: report correct line for property/const variance errors | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36071@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21993
Author: iliaal
Fixes #14874. Adds a
uint32_t line field to zend_property_info and
zend_class_constant captured from the AST node, so the variance emitters route through
zend_error_at_noreturn and point at the offending child member. Members left at line 0
(internal classes, trait-copied properties) fall back to the legacy emitter.