Skip to content

Commit 6573959

Browse files
committed
Do not run PHP bug workaround on PHP 8+ where it's fixed
1 parent 30ff227 commit 6573959

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Reflection/Php/PhpMethodReflection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ public function getName(): string
193193
$name = $this->reflection->getName();
194194
$lowercaseName = strtolower($name);
195195
if ($lowercaseName === $name) {
196+
if (PHP_VERSION_ID >= 80000) {
197+
return $name;
198+
}
199+
196200
// fix for https://bugs.php.net/bug.php?id=74939
197201
foreach ($this->getDeclaringClass()->getNativeReflection()->getTraitAliases() as $traitTarget) {
198202
$correctName = $this->getMethodNameWithCorrectCase($name, $traitTarget);

0 commit comments

Comments
 (0)