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