8000 add fixture with call to keep · rectorphp/rector-symfony@1e7aa6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e7aa6b

Browse files
committed
add fixture with call to keep
1 parent 32e12bb commit 1e7aa6b

File tree

1 file changed

+31
-0
lines changed
  • rules-tests/Symfony61/Rector/Class_/CommandConfigureToAttributeRector/Fixture

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Rector\Symfony\Tests\Symfony61\Rector\Class_\CommandConfigureToAttributeRector\Fixture;
4+
5+
final class OtherCalls extends \Symfony\Component\Console\Command\Command
6+
{
7+
public function configure()
8+
{
9+
$this->setName('sunshine')
10+
->setAliases(['first', 'second'])
11+
->addArgument('argument name');
12+
}
13+
}
14+
15+
?>
16+
-----
17+
<?php
18+
19+
namespace Rector\Symfony\Tests\Symfony61\Rector\Class_\CommandConfigureToAttributeRector\Fixture;
20+
21+
#[\Symfony\Component\Console\Attribute\AsCommand(name: 'sunshine', aliases: ['first', 'second'])]
22+
final class OtherCalls extends \Symfony\Component\Console\Command\Command
23+
{
24+
public function configure()
25+
{
26+
$this
27+
->addArgument('argument name');
28+
}
29+
}
30+
31+
?>

0 commit comments

Comments
 (0)
0