Skip to content

Commit 3595b75

Browse files
Keep AsCommand in InvokableCommandInputAttributeRector documentation (#824)
1 parent c1dcdae commit 3595b75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rules/Symfony73/Rector/Class_/InvokableCommandInputAttributeRector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ public function execute(InputInterface $input, OutputInterface $output)
8282
CODE_SAMPLE
8383
,
8484
<<<'CODE_SAMPLE'
85+
use Symfony\Component\Console\Attribute\AsCommand;
8586
use Symfony\Component\Console\Command\Command;
8687
use Symfony\Component\Console\Argument;
8788
use Symfony\Component\Console\Option;
8889
90+
#[AsCommand(name: 'some_name')]
8991
final class SomeCommand
9092
{
9193
public function __invoke(

0 commit comments

Comments
 (0)