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

Commitce67b78

Browse files
bugfix(#58614): Add check for the __callStatic method to the AbstractRecursivePass
1 parentf929b1e commitce67b78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ protected function getReflectionMethod(Definition $definition, string $method)
202202
returnnew \ReflectionMethod(staticfunction (...$arguments) {},'__invoke');
203203
}
204204

205+
if ($r->hasMethod('__callStatic') && ($r =$r->getMethod('__callStatic')) &&$r->isPublic()) {
206+
returnnew \ReflectionMethod(staticfunction (...$arguments) {},'__invoke');
207+
}
208+
205209
thrownewRuntimeException(sprintf('Invalid service "%s": method "%s()" does not exist.',$this->currentId,$class !==$this->currentId ?$class.'::'.$method :$method));
206210
}
207211

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp