# RFC: Reserve keywords in PHP 8

- Status: Withdrawn
- Authors: Ilija Tovilo tovilo.ilija@gmail.com
- Date: 2020-06-13
- Original: https://wiki.php.net/rfc/reserve_keywords_in_php_8
- Page: https://externals.io/rfc/reserve_keywords_in_php_8
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

## Discussions on the mailing list

- [\[RFC\] Reserve keywords in PHP 8](https://externals.io/message/110504.md) — started on 2020-06-13, 8 messages

---

## 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

...
