File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
rules-tests/Symfony61/Rector/Class_/CommandConfigureToAttributeRector/Fixture Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
+ ?>
You can’t perform that action at this time.
0 commit comments