|
@@ -51,6 +51,7 @@ class Tokens extends \SplFixedArray
|
|
|
public const BLOCK_TYPE_DISJUNCTIVE_NORMAL_FORM_TYPE_PARENTHESIS = 12;
|
|
|
public const BLOCK_TYPE_DYNAMIC_CLASS_CONSTANT_FETCH_CURLY_BRACE = 13;
|
|
|
public const BLOCK_TYPE_COMPLEX_STRING_VARIABLE = 14;
|
|
|
+ public const BLOCK_TYPE_PROPERTY_HOOK = 15;
|
|
|
|
|
|
/**
|
|
|
* Static class cache.
|
|
@@ -278,6 +279,10 @@ class Tokens extends \SplFixedArray
|
|
|
'start' => [T_DOLLAR_OPEN_CURLY_BRACES, '${'],
|
|
|
'end' => [CT::T_DOLLAR_CLOSE_CURLY_BRACES, '}'],
|
|
|
],
|
|
|
+ self::BLOCK_TYPE_PROPERTY_HOOK => [
|
|
|
+ 'start' => [CT::T_PROPERTY_HOOK_BRACE_OPEN, '{'],
|
|
|
+ 'end' => [CT::T_PROPERTY_HOOK_BRACE_CLOSE, '}'],
|
|
|
+ ],
|
|
|
];
|
|
|
|
|
|
// @TODO: drop condition when PHP 8.0+ is required
|