Verified Commit a6b7ab73 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3444264 by andypost, alexpott, longwave: [PHP 8.4] ReflectionMethod...

Issue #3444264 by andypost, alexpott, longwave: [PHP 8.4] ReflectionMethod constructor deprecated with one argument

(cherry picked from commit 152b7f06)
parent 2d3e0bd3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ protected function getReflector(callable $callable) {
      return new \ReflectionMethod($callable[0], $callable[1]);
    }
    if (is_string($callable) && str_contains($callable, "::")) {
      return new \ReflectionMethod($callable);
      return \ReflectionMethod::createFromMethodName($callable);
    }
    return new \ReflectionFunction($callable);
  }