From de2ee860442c8a12b8d1cfe97149b2a2af158662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mor=C3=A1vek?= Date: Sat, 9 Nov 2024 18:13:53 +0100 Subject: [PATCH] Forward compatibility: Eliminate runtime reflection checks --- src/MessageBus/CommandBusDynamicMethodThrowTypeExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MessageBus/CommandBusDynamicMethodThrowTypeExtension.php b/src/MessageBus/CommandBusDynamicMethodThrowTypeExtension.php index 2af4d56..b1e3f90 100644 --- a/src/MessageBus/CommandBusDynamicMethodThrowTypeExtension.php +++ b/src/MessageBus/CommandBusDynamicMethodThrowTypeExtension.php @@ -31,7 +31,7 @@ public function __construct(CommandTypeExtractor $commandTypeExtractor, CommandH public function isMethodSupported(MethodReflection $methodReflection): bool { - if (! is_a($methodReflection->getDeclaringClass()->getName(), CommandBus::class, true)) { + if (! $methodReflection->getDeclaringClass()->is(CommandBus::class)) { return false; }