From 152b7f069430ef70f9b896a5bf61e9e26daa9969 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 7 May 2024 16:11:47 +0100 Subject: [PATCH] Issue #3444264 by andypost, alexpott, longwave: [PHP 8.4] ReflectionMethod constructor deprecated with one argument --- core/lib/Drupal/Component/Utility/ArgumentsResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Component/Utility/ArgumentsResolver.php b/core/lib/Drupal/Component/Utility/ArgumentsResolver.php index f009a5266fc6..8663aa4c40de 100644 --- a/core/lib/Drupal/Component/Utility/ArgumentsResolver.php +++ b/core/lib/Drupal/Component/Utility/ArgumentsResolver.php @@ -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); } -- GitLab