@@ -19,8 +19,24 @@ protected function configure(): void
19
19
$ this ->addArgument ('base ' );
20
20
}
21
21
22
- protected function interact (InputInterface $ input , OutputInterface $ output ): int
22
+ protected function initialize (InputInterface $ input , OutputInterface $ output ): void
23
23
{
24
+ assertType ('bool ' , $ input ->hasArgument ('command ' ));
25
+
26
+ assertType ('string|null ' , $ input ->getArgument ('base ' ));
27
+ assertType ('string ' , $ input ->getArgument ('aaa ' ));
28
+ assertType ('string ' , $ input ->getArgument ('bbb ' ));
29
+ assertType ('string|null ' , $ input ->getArgument ('required ' ));
30
+ assertType ('array<int, string>|string ' , $ input ->getArgument ('diff ' ));
31
+ assertType ('array<int, string> ' , $ input ->getArgument ('arr ' ));
32
+ assertType ('string|null ' , $ input ->getArgument ('both ' ));
33
+ assertType ('Symfony\Component\Console\Helper\QuestionHelper ' , $ this ->getHelper ('question ' ));
34
+ }
35
+
36
+ protected function interact (InputInterface $ input , OutputInterface $ output ): void
37
+ {
38
+ assertType ('bool ' , $ input ->hasArgument ('command ' ));
39
+
24
40
assertType ('string|null ' , $ input ->getArgument ('base ' ));
25
41
assertType ('string ' , $ input ->getArgument ('aaa ' ));
26
42
assertType ('string ' , $ input ->getArgument ('bbb ' ));
@@ -33,6 +49,8 @@ protected function interact(InputInterface $input, OutputInterface $output): int
33
49
34
50
protected function execute (InputInterface $ input , OutputInterface $ output ): int
35
51
{
52
+ assertType ('true ' , $ input ->hasArgument ('command ' ));
53
+
36
54
assertType ('string|null ' , $ input ->getArgument ('base ' ));
37
55
assertType ('string ' , $ input ->getArgument ('aaa ' ));
38
56
assertType ('string ' , $ input ->getArgument ('bbb ' ));
0 commit comments