Skip to content

Commit

Permalink
Some more type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
exussum12 committed Aug 6, 2018
1 parent 262fe8e commit 36b2004
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Loaders/PhpCs.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function parseLines(): array
/**
* {@inheritdoc}
*/
public function getErrorsOnLine(string $file, $lineNumber)
public function getErrorsOnLine(string $file, int $lineNumber)
{
$errors = [];
if (!empty($this->invalidFiles[$file])) {
Expand Down
2 changes: 1 addition & 1 deletion src/Loaders/PhpMndXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function handleErrors(XMLReader $reader, $currentFile)
/**
* @inheritdoc
*/
public function getErrorsOnLine($file, $lineNumber)
public function getErrorsOnLine(string $file, int $lineNumber)
{
$errors = [];
if (isset($this->invalidLines[$file][$lineNumber])) {
Expand Down
2 changes: 1 addition & 1 deletion src/Loaders/PhpStan.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function parseLines(): array
/**
* {@inheritdoc}
*/
public function getErrorsOnLine($file, $lineNumber)
public function getErrorsOnLine(string $file, int $lineNumber)
{
$errors = [];
if (isset($this->invalidLines[$file][$lineNumber])) {
Expand Down

0 comments on commit 36b2004

Please sign in to comment.