From 2139077d86613f9742526de4ecf0377e897acb3e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 25 Oct 2025 18:46:48 +0200 Subject: [PATCH] List of other reserved words: add "parent" and "self" Page: https://www.php.net/manual/en/reserved.other-reserved-words.php `parent` and `self` can be used as function names and constant names, but cannot be used as OO construct names since PHP 5.0, making them part of the "other" reserved keywords. Example: https://3v4l.org/P6c7v Note sure why these weren't listed, but feels like they should be. --- appendices/reserved.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/appendices/reserved.xml b/appendices/reserved.xml index 36bcfdc89f09..9c50a7f5fda3 100644 --- a/appendices/reserved.xml +++ b/appendices/reserved.xml @@ -519,40 +519,48 @@ + + parent + + + self + int float + + bool string - - true false + + null void (as of PHP 7.1) - - iterable (as of PHP 7.1) object (as of PHP 7.2) + + mixed (as of PHP 8.0)