Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6573959

Browse files
committed
Do not run PHP bug workaround on PHP 8+ where it's fixed
1 parent30ff227 commit6573959

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)

[8]ページ先頭

©2009-2025 Movatter.jp