From 1c1fad02416f323a63e84802ab3ced00b26a7a5f Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Thu, 18 Apr 2024 10:27:24 -0500 Subject: [PATCH] What does getShortName return? --- src/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions.php b/src/functions.php index 05dced59..eeeef7aa 100644 --- a/src/functions.php +++ b/src/functions.php @@ -151,6 +151,7 @@ function weakClosure(\Closure $closure): \Closure $useBindTo = !$scope || $that::class !== $scope->name || $scope->isInternal(); $methodName = $reflection->getShortName(); + var_dump($methodName); if (!\str_starts_with($methodName, '{closure')) { // Closure from first-class callable or \Closure::fromCallable(), declare an anonymous closure to rebind. /** @psalm-suppress InvalidScope Closure is bound before being invoked. */