Loading core/.phpstan-baseline.php +5 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,11 @@ 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Gettext/PoStreamReader.php', ]; $ignoreErrors[] = [ 'message' => '#^Call to an undefined static method ReflectionMethod\\:\\:createFromMethodName\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Utility/ArgumentsResolver.php', ]; $ignoreErrors[] = [ 'message' => '#^Variable \\$permission might not be defined\\.$#', 'count' => 1, Loading core/lib/Drupal/Component/Utility/ArgumentsResolver.php +1 −1 Original line number Diff line number Diff line Loading @@ -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 PHP_VERSION_ID < 80300 ? new \ReflectionMethod($callable) : \ReflectionMethod::createFromMethodName($callable); } return new \ReflectionFunction($callable); } Loading Loading
core/.phpstan-baseline.php +5 −0 Original line number Diff line number Diff line Loading @@ -182,6 +182,11 @@ 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Gettext/PoStreamReader.php', ]; $ignoreErrors[] = [ 'message' => '#^Call to an undefined static method ReflectionMethod\\:\\:createFromMethodName\\(\\)\\.$#', 'count' => 1, 'path' => __DIR__ . '/lib/Drupal/Component/Utility/ArgumentsResolver.php', ]; $ignoreErrors[] = [ 'message' => '#^Variable \\$permission might not be defined\\.$#', 'count' => 1, Loading
core/lib/Drupal/Component/Utility/ArgumentsResolver.php +1 −1 Original line number Diff line number Diff line Loading @@ -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 PHP_VERSION_ID < 80300 ? new \ReflectionMethod($callable) : \ReflectionMethod::createFromMethodName($callable); } return new \ReflectionFunction($callable); } Loading