From 464ffb22895d623a848edb42949d10c9ca5b95bf Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 11 Apr 2022 13:16:20 +0300 Subject: [PATCH] Document missing tokens Closes GH-1510. --- appendices/tokens.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/appendices/tokens.xml b/appendices/tokens.xml index f787eef736..78069d7a5d 100644 --- a/appendices/tokens.xml +++ b/appendices/tokens.xml @@ -55,6 +55,16 @@ defined('T_FN') || define('T_FN', 10001); abstract + + T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG + & + (available as of PHP 8.1.0) + + + T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG + & + (available as of PHP 8.1.0) + T_AND_EQUAL &= @@ -332,6 +342,11 @@ defined('T_FN') || define('T_FN', 10001); while, alternative syntax + + T_ENUM + enum + Enumerations (available as of PHP 8.1.0) + T_END_HEREDOC @@ -579,6 +594,20 @@ defined('T_FN') || define('T_FN', 10001); namespaces (available as of PHP 8.0.0) + + T_NAME_QUALIFIED + App\Namespace + + namespaces (available as of PHP 8.0.0) + + + + T_NAME_RELATIVE + namespace\Namespace + + namespaces (available as of PHP 8.0.0) + + T_NEW new @@ -689,6 +718,13 @@ defined('T_FN') || define('T_FN', 10001); classes and objects + + T_READONLY + readonly + + classes and objects (available as of PHP 8.1.0) + + T_REQUIRE require()