@@ -143,7 +143,7 @@ private function getFilesInfo(array $filenames): array
143143 return $ filesInfo ;
144144 }
145145
146- protected function findFiles (string $ filename )
146+ protected function findFiles (string $ filename ): iterable
147147 {
148148 if (is_file ($ filename )) {
149149 return [$ filename ];
@@ -172,7 +172,7 @@ private function validate(string $template, string $file): array
172172 return ['template ' => $ template , 'file ' => $ file , 'valid ' => true ];
173173 }
174174
175- private function display (InputInterface $ input , OutputInterface $ output , SymfonyStyle $ io , array $ files )
175+ private function display (InputInterface $ input , OutputInterface $ output , SymfonyStyle $ io , array $ files ): int
176176 {
177177 return match ($ this ->format ) {
178178 'txt ' => $ this ->displayTxt ($ output , $ io , $ files ),
@@ -205,7 +205,7 @@ private function displayTxt(OutputInterface $output, SymfonyStyle $io, array $fi
205205 return min ($ errors , 1 );
206206 }
207207
208- private function displayJson (OutputInterface $ output , array $ filesInfo )
208+ private function displayJson (OutputInterface $ output , array $ filesInfo ): int
209209 {
210210 $ errors = 0 ;
211211
@@ -224,7 +224,7 @@ private function displayJson(OutputInterface $output, array $filesInfo)
224224 return min ($ errors , 1 );
225225 }
226226
227- private function renderException (SymfonyStyle $ output , string $ template , Error $ exception , string $ file = null , GithubActionReporter $ githubReporter = null )
227+ private function renderException (SymfonyStyle $ output , string $ template , Error $ exception , string $ file = null , GithubActionReporter $ githubReporter = null ): void
228228 {
229229 $ line = $ exception ->getTemplateLine ();
230230
0 commit comments