File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ protected function configure(): void
3333
3434 protected function execute (InputInterface $ input , OutputInterface $ output )
3535 {
36- $ size = $ input ->getArgument ('size ' );
37- if (! \is_int ( $ size) ) {
36+ $ size = ( int ) $ input ->getArgument ('size ' );
37+ if ($ size < 1 ) {
3838 throw new InvalidArgumentException ('Invalid size ' );
3939 }
4040 $ args = $ this ->getOptions ($ input );
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ protected function configure(): void
3333
3434 protected function execute (InputInterface $ input , OutputInterface $ output )
3535 {
36- $ size = $ input ->getArgument ('size ' );
36+ $ size = ( int ) $ input ->getArgument ('size ' );
3737 $ args = $ this ->getOptions ($ input );
38- if (! \is_int ( $ size) ) {
38+ if ($ size < 1 ) {
3939 throw new InvalidArgumentException ('Invalid size ' );
4040 }
4141
You can’t perform that action at this time.
0 commit comments