diff --git a/src/Check/ReturnCheck.php b/src/Check/ReturnCheck.php index 85c7431..608404b 100644 --- a/src/Check/ReturnCheck.php +++ b/src/Check/ReturnCheck.php @@ -46,7 +46,7 @@ public function check(FileInfo $file) } } - if ($method['docblock']['return'] !== $method['return']) { + if (!is_array($method['return']) && $method['docblock']['return'] !== $method['return']) { if ($method['return'] === 'array' && substr($method['docblock']['return'], -2) === '[]') { // Do nothing because this is fine. } else {