diff --git a/tests/App/src/Console/FailingMappingCommand.php b/tests/App/src/Console/FailingMappingCommand.php index 8b82b50..523bd4e 100644 --- a/tests/App/src/Console/FailingMappingCommand.php +++ b/tests/App/src/Console/FailingMappingCommand.php @@ -5,14 +5,14 @@ namespace CuyZ\ValinorBundle\Tests\App\Console; use CuyZ\Valinor\Mapper\TreeMapper; +use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; +#[AsCommand('test:command-with-failing-mapping')] final class FailingMappingCommand extends Command { - protected static $defaultName = 'test:command-with-failing-mapping'; - public function __construct(private TreeMapper $mapper) { parent::__construct();