We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8d421 commit 07f7bbcCopy full SHA for 07f7bbc
README.md
@@ -66,7 +66,7 @@ class ImportMoviesCommand extends ParallelCommand
66
// ...
67
}
68
69
- protected function fetchItems(InputInterface $input): iterable
+ protected function fetchItems(InputInterface $input, OutputInterface $output): iterable
70
{
71
// open up the file and read movie data...
72
@@ -85,8 +85,12 @@ class ImportMoviesCommand extends ParallelCommand
85
// insert into the database
86
87
88
- protected function getItemName(int $count): string
+ protected function getItemName(?int $count): string
89
90
+ if (null === $count) {
91
+ return 'movie(s)';
92
+ }
93
+
94
return 1 === $count ? 'movie' : 'movies';
95
96
0 commit comments