[php-src] PR #15977: GH-15976: clarify error messages for enum/trait/interface/alias names
| From: | DanielEScherzer | Date: | Sat, 21 Sep 2024 20:24:55 +0000 |
| Subject: | [php-src] PR #15977: GH-15976: clarify error messages for enum/trait/interface/alias names | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28691@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15977
Author: DanielEScherzer
Instead of always saying that a name is reserved or deprecated and
cannot/should not be used as a class name, take the usage into account and say
the name cannot be used as an enum name, trait name, etc. In the process, for
class names add a missing "a".
Add tests for the new messages.