From 65e7a1efc63c726cc969e6b38e8045a70fcc654f Mon Sep 17 00:00:00 2001
From: Dave Long <dave@longwaveconsulting.com>
Date: Tue, 30 Apr 2024 23:28:35 +0100
Subject: [PATCH] Revert "Issue #3444264 by andypost: [PHP 8.4]
 ReflectionMethod constructor deprecated with one argument"

This reverts commit 40898b6120e01f78ba0c791971b8d2ec34b00759.
---
 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 da577f77290f..f009a5266fc6 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 PHP_VERSION_ID < 80300 ? new \ReflectionMethod($callable) : \ReflectionMethod::createFromMethodName($callable);
+      return new \ReflectionMethod($callable);
     }
     return new \ReflectionFunction($callable);
   }
-- 
GitLab