rfc:reserve_keywords_in_php_8

PHP RFC: Reserve keywords in PHP 8

Proposal

This RFC proposes adding new keywords to PHP 8 to avoid BC breaks in future PHP 8.x versions.

  • enum (reserved_non_modifiers)

Keyword type explanation

reserved_non_modifiers

Keywords marked as reserved_non_modifiers will be disallowed in the following contexts:

  • namespaces
  • class names
  • function names
  • global constants

Vote

...

rfc/reserve_keywords_in_php_8.txt · Last modified: 2021/03/14 22:07 by ilutov