From 96d50f00f4ae05acb96d37430fc39e375fc7fcf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 18 Sep 2024 15:03:29 +0200 Subject: [PATCH] use Numeric Literal Separator --- tests/Internal/Codebase/InternalCallMapHandlerTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Internal/Codebase/InternalCallMapHandlerTest.php b/tests/Internal/Codebase/InternalCallMapHandlerTest.php index 52a17d4b79d..17abdc3390a 100644 --- a/tests/Internal/Codebase/InternalCallMapHandlerTest.php +++ b/tests/Internal/Codebase/InternalCallMapHandlerTest.php @@ -520,10 +520,11 @@ private function getReflectionFunction(string $functionName): ?ReflectionFunctio { try { if (strpos($functionName, '::') !== false) { - if (PHP_VERSION_ID < 803000) { + if (PHP_VERSION_ID >= 80_300) { [$className, , $methodName] = explode(':', $functionName, 3); return new ReflectionMethod($className, $methodName); } + return ReflectionMethod::createFromMethodName($functionName); }