Skip to content

Commit

Permalink
Analyser: do not report E_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 30, 2021
1 parent 458a8fb commit 1a43385
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
4 changes: 4 additions & 0 deletions src/Analyser/Analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ private function collectErrors(array $analysedFiles): void
return true;
}

if ($errno === E_DEPRECATED) {
return true;
}

if (!in_array($errfile, $analysedFiles, true)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,7 @@ public function dataRequiredParameterAfterOptional(): array
return [
[
70400,
PHP_VERSION_ID < 80000 || self::$useStaticReflectionProvider ? [] : [
[
'Required parameter $bar follows optional parameter $foo',
8,
],
[
'Required parameter $bar follows optional parameter $foo',
17,
],
[
'Required parameter $bar follows optional parameter $foo',
21,
],
],
[],
],
[
80000,
Expand Down

0 comments on commit 1a43385

Please sign in to comment.