@@ -19,8 +19,26 @@ protected function configure(): void
1919 $ this ->addArgument ('base ' );
2020 }
2121
22- protected function interact (InputInterface $ input , OutputInterface $ output ): int
22+ protected function initialize (InputInterface $ input , OutputInterface $ output ): void
2323 {
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+
2442 assertType ('string|null ' , $ input ->getArgument ('base ' ));
2543 assertType ('string ' , $ input ->getArgument ('aaa ' ));
2644 assertType ('string ' , $ input ->getArgument ('bbb ' ));
@@ -33,6 +51,9 @@ protected function interact(InputInterface $input, OutputInterface $output): int
3351
3452 protected function execute (InputInterface $ input , OutputInterface $ output ): int
3553 {
54+ assertType ('true ' , $ input ->hasArgument ('command ' ));
55+ assertType ('string ' , $ input ->getArgument ('command ' ));
56+
3657 assertType ('string|null ' , $ input ->getArgument ('base ' ));
3758 assertType ('string ' , $ input ->getArgument ('aaa ' ));
3859 assertType ('string ' , $ input ->getArgument ('bbb ' ));
0 commit comments