[php-src] PR #11286: Correctly handle multiple constants in typed declaration
| From: | nikic | Date: | Sat, 20 May 2023 16:36:07 +0000 |
| Subject: | [php-src] PR #11286: Correctly handle multiple constants in typed declaration | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22551@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11286
Author: nikic
If a class constant declaration declares multiple constants, the type should apply to all of them.
In the AST, move the type information from CLASS_CONST_ELEM to CLASS_CONST_GROUP. This matches what
we do for typed properties.
While here also fix AST printing support.