Skip to content
#externals
← All RFCs
Withdrawn

Reserve keywords in PHP 8

by Ilija Tovilo
Contents
  1. Proposal
  2. Keyword type explanation
  3. reserved_non_modifiers
  4. Vote

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

...