diff --git a/src/TestCommand.php b/src/TestCommand.php index 149f4a3..422175c 100644 --- a/src/TestCommand.php +++ b/src/TestCommand.php @@ -56,7 +56,7 @@ public static function for(Command $command): self public static function from(Application $application, string $cli): self { foreach ($application->all() as $commandObject) { - if ($cli === \get_class($commandObject)) { + if ($cli === $commandObject::class) { return self::for($commandObject); } }