@@ -143,7 +143,7 @@ private function getFilesInfo(array $filenames): array
143
143
return $ filesInfo ;
144
144
}
145
145
146
- protected function findFiles (string $ filename )
146
+ protected function findFiles (string $ filename ): iterable
147
147
{
148
148
if (is_file ($ filename )) {
149
149
return [$ filename ];
@@ -172,7 +172,7 @@ private function validate(string $template, string $file): array
172
172
return ['template ' => $ template , 'file ' => $ file , 'valid ' => true ];
173
173
}
174
174
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
176
176
{
177
177
return match ($ this ->format ) {
178
178
'txt ' => $ this ->displayTxt ($ output , $ io , $ files ),
@@ -205,7 +205,7 @@ private function displayTxt(OutputInterface $output, SymfonyStyle $io, array $fi
205
205
return min ($ errors , 1 );
206
206
}
207
207
208
- private function displayJson (OutputInterface $ output , array $ filesInfo )
208
+ private function displayJson (OutputInterface $ output , array $ filesInfo ): int
209
209
{
210
210
$ errors = 0 ;
211
211
@@ -224,7 +224,7 @@ private function displayJson(OutputInterface $output, array $filesInfo)
224
224
return min ($ errors , 1 );
225
225
}
226
226
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
228
228
{
229
229
$ line = $ exception ->getTemplateLine ();
230
230
0 commit comments