Remove deadcode after the bump to PHP >= 8.4

This commit is contained in:
Nicolas Grekas
2025-06-03 17:41:25 +02:00
parent 2a32f5f31d
commit aae9ff4f22
5 changed files with 8 additions and 48 deletions
+1 -1
View File
@@ -868,7 +868,7 @@ class DebugClassLoader
$constant = new \ReflectionClassConstant($definingClass, $constantName);
if (\PHP_VERSION_ID >= 80300 && $constantType = $constant->getType()) {
if ($constantType = $constant->getType()) {
if ($constantType instanceof \ReflectionNamedType) {
$n = $constantType->getName();
} else {