This commit is contained in:
Thomas Portelange 2024-03-21 15:44:41 +01:00 committed by GitHub
parent 7e4584591f
commit 89195568a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 4 deletions

View File

@ -418,8 +418,7 @@ class ClassInfo
$tokenName = is_array($token) ? $token[0] : $token;
// Get the class name
if (
\defined('T_NAME_QUALIFIED') && is_array($token) &&
if (\defined('T_NAME_QUALIFIED') && is_array($token) &&
($token[0] === T_NAME_QUALIFIED || $token[0] === T_NAME_FULLY_QUALIFIED)
) {
// PHP 8 exposes the FQCN as a single T_NAME_QUALIFIED or T_NAME_FULLY_QUALIFIED token
@ -437,7 +436,7 @@ class ClassInfo
// Found another section of a namespaced class
$class .= $token[1];
$lastTokenWasNSSeparator = false;
// Get arguments
// Get arguments
} elseif (is_array($token)) {
switch ($token[0]) {
case T_CONSTANT_ENCAPSED_STRING:
@ -460,7 +459,7 @@ class ClassInfo
break;
case T_DNUMBER:
$result = (float)$token[1];
$result = (double)$token[1];
break;
case T_LNUMBER: