Skip to content

Commit

Permalink
Forward compatibility: Eliminate runtime reflection checks
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Nov 9, 2024
1 parent 167ef27 commit de2ee86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit de2ee86

Please sign in to comment.