Skip to content
Snippets Groups Projects
Verified Commit 65e7a1ef authored by Dave Long's avatar Dave Long
Browse files

Revert "Issue #3444264 by andypost: [PHP 8.4] ReflectionMethod constructor...

Revert "Issue #3444264 by andypost: [PHP 8.4] ReflectionMethod constructor deprecated with one argument"

This reverts commit 40898b61.
parent 20d5c8ad
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ protected function getReflector(callable $callable) {
return new \ReflectionMethod($callable[0], $callable[1]);
}
if (is_string($callable) && str_contains($callable, "::")) {
return PHP_VERSION_ID < 80300 ? new \ReflectionMethod($callable) : \ReflectionMethod::createFromMethodName($callable);
return new \ReflectionMethod($callable);
}
return new \ReflectionFunction($callable);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment