33namespace PHPStan \Type \Symfony ;
44
55use Symfony \Component \Console \Command \Command ;
6+ use Symfony \Component \Console \Input \InputArgument ;
67use Symfony \Component \Console \Input \InputInterface ;
78use Symfony \Component \Console \Output \OutputInterface ;
89use function PHPStan \Testing \assertType ;
@@ -14,16 +15,18 @@ protected function configure(): void
1415 {
1516 parent ::configure ();
1617
18+ $ this ->addArgument ('required ' , InputArgument::REQUIRED );
1719 $ this ->addArgument ('base ' );
1820 }
1921
2022 protected function interact (InputInterface $ input , OutputInterface $ output ): int
2123 {
2224 assertType ('string|null ' , $ input ->getArgument ('base ' ));
23- assertType ('string|null ' , $ input ->getArgument ('aaa ' ));
24- assertType ('string|null ' , $ input ->getArgument ('bbb ' ));
25- assertType ('array<int, string>|string|null ' , $ input ->getArgument ('diff ' ));
26- assertType ('array<int, string>|null ' , $ input ->getArgument ('arr ' ));
25+ assertType ('string ' , $ input ->getArgument ('aaa ' ));
26+ assertType ('string ' , $ input ->getArgument ('bbb ' ));
27+ assertType ('string|null ' , $ input ->getArgument ('required ' ));
28+ assertType ('array<int, string>|string ' , $ input ->getArgument ('diff ' ));
29+ assertType ('array<int, string> ' , $ input ->getArgument ('arr ' ));
2730 assertType ('string|null ' , $ input ->getArgument ('both ' ));
2831 assertType ('Symfony\Component\Console\Helper\QuestionHelper ' , $ this ->getHelper ('question ' ));
2932 }
@@ -33,6 +36,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
3336 assertType ('string|null ' , $ input ->getArgument ('base ' ));
3437 assertType ('string ' , $ input ->getArgument ('aaa ' ));
3538 assertType ('string ' , $ input ->getArgument ('bbb ' ));
39+ assertType ('string ' , $ input ->getArgument ('required ' ));
3640 assertType ('array<int, string>|string ' , $ input ->getArgument ('diff ' ));
3741 assertType ('array<int, string> ' , $ input ->getArgument ('arr ' ));
3842 assertType ('string|null ' , $ input ->getArgument ('both ' ));
0 commit comments