Skip to content

Commit d86c446

Browse files
committed
Add some more type hints
1 parent 801add3 commit d86c446

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/Loaders/Checkstyle.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ public static function getDescription(): string
7676
return 'Parses a report in checkstyle format';
7777
}
7878

79-
/**
80-
* @param XMLReader $reader
81-
* @param string $currentFile
82-
*/
83-
protected function handleErrors($reader, $currentFile)
79+
protected function handleErrors(XMLReader $reader, string $currentFile)
8480
{
8581
if ($reader->name === "error") {
8682
$this->coveredLines
@@ -90,12 +86,7 @@ protected function handleErrors($reader, $currentFile)
9086
}
9187
}
9288

93-
/**
94-
* @param XMLReader $reader
95-
* @param string $currentFile
96-
* @return string
97-
*/
98-
protected function handleFile($reader, $currentFile)
89+
protected function handleFile(XMLReader $reader, string $currentFile): string
9990
{
10091
if ((
10192
$reader->name === "file" &&

0 commit comments

Comments
 (0)