We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f71bd2 commit fd85cc3Copy full SHA for fd85cc3
src/CheckerCommand.php
@@ -378,6 +378,7 @@ protected function processFile($file)
378
if (
379
($method['return'] === 'array' && substr($method['docblock']['return'], -2) === '[]')
380
|| $method['docblock']['return'] === 'mixed'
381
+ || (strpos($method['docblock']['return'], '|') !== false && PHP_MAJOR_VERSION < 8)
382
) {
383
// Do nothing because this is fine.
384
} else {
0 commit comments