diff --git a/core/lib/Drupal/Component/Utility/ArgumentsResolver.php b/core/lib/Drupal/Component/Utility/ArgumentsResolver.php
index f009a5266fc694e31f01d17c60da00a057dfeda6..8663aa4c40debe79de1391f1b5cb945827e49f3f 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);
   }