Skip to content

Commit 36b2004

Browse files
committed
Some more type checks
1 parent 262fe8e commit 36b2004

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Loaders/PhpCs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function parseLines(): array
9797
/**
9898
* {@inheritdoc}
9999
*/
100-
public function getErrorsOnLine(string $file, $lineNumber)
100+
public function getErrorsOnLine(string $file, int $lineNumber)
101101
{
102102
$errors = [];
103103
if (!empty($this->invalidFiles[$file])) {

src/Loaders/PhpMndXml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function handleErrors(XMLReader $reader, $currentFile)
6969
/**
7070
* @inheritdoc
7171
*/
72-
public function getErrorsOnLine($file, $lineNumber)
72+
public function getErrorsOnLine(string $file, int $lineNumber)
7373
{
7474
$errors = [];
7575
if (isset($this->invalidLines[$file][$lineNumber])) {

src/Loaders/PhpStan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function parseLines(): array
6060
/**
6161
* {@inheritdoc}
6262
*/
63-
public function getErrorsOnLine($file, $lineNumber)
63+
public function getErrorsOnLine(string $file, int $lineNumber)
6464
{
6565
$errors = [];
6666
if (isset($this->invalidLines[$file][$lineNumber])) {

0 commit comments

Comments
 (0)