From 2ad87fb75c677b406dd3b9bcc3c8194f825a1a14 Mon Sep 17 00:00:00 2001 From: Olivier Gorzalka Date: Tue, 27 Oct 2026 15:16:47 +0100 Subject: [PATCH] chore: follow Rector 2.8.1 (nullable object checks as instanceof) --- src/Async/CallableDescriptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Async/CallableDescriptor.php b/src/Async/CallableDescriptor.php index 018473d..a048fb1 100644 --- a/src/Async/CallableDescriptor.php +++ b/src/Async/CallableDescriptor.php @@ -152,7 +152,7 @@ private function describeClosure(\Closure $closure): string return match (true) { $object !== null => $this->describeMethod($object, $reflection->getName()), - $scope !== null => $this->describeMethod($scope->getName(), $reflection->getName()), + $scope instanceof \ReflectionClass => $this->describeMethod($scope->getName(), $reflection->getName()), default => $this->describeString($reflection->getName()), }; }