Skip to content

Commit 09e01fa

Browse files
authored
Merge pull request #2285 from kevinpapst/php8
failsafe check for php 8
2 parents d60e0ba + 05efe75 commit 09e01fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Routing/Loader/ClassUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function findClassInFile(string $file): ?string
2424
$namespace = false;
2525
$tokens = token_get_all(file_get_contents($file));
2626

27-
if (defined('T_NAME_QUALIFIED')) {
27+
if (PHP_VERSION_ID >= 80000) {
2828
$namespaceToken = T_NAME_QUALIFIED;
2929
} else {
3030
$namespaceToken = T_STRING;

0 commit comments

Comments
 (0)