From 814e56b3dbc9f2fe8e581c4fb01ea9809deddb23 Mon Sep 17 00:00:00 2001 From: sasezaki Date: Sat, 13 Dec 2025 21:45:42 +0900 Subject: [PATCH] [PHP 8.5] Add new tokens, T_VOID_CAST T_PIPE --- appendices/tokens.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/appendices/tokens.xml b/appendices/tokens.xml index 4294cbc1e38b..5da3fd19a49c 100644 --- a/appendices/tokens.xml +++ b/appendices/tokens.xml @@ -677,6 +677,13 @@ defined('T_FN') || define('T_FN', 10001); scope resolution. Also defined as T_DOUBLE_COLON. + + T_PIPE + |> + + functional operators (available as of PHP 8.5.0) + + T_PLUS_EQUAL += @@ -887,6 +894,11 @@ defined('T_FN') || define('T_FN', 10001); $foo variables + + T_VOID_CAST + (void) + void cast (available as of PHP 8.5.0) + T_WHILE while