Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 4d9731b

Browse files
author
Sergei Filonich
committed
Checking.
1 parent 0f827e6 commit 4d9731b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Check/ReturnCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function check(FileInfo $file)
4646
}
4747
}
4848

49-
if ($method['docblock']['return'] !== $method['return'] && !is_array($method['return'])) {
49+
if (!is_array($method['return']) && $method['docblock']['return'] !== $method['return']) {
5050
if ($method['return'] === 'array' && substr($method['docblock']['return'], -2) === '[]') {
5151
// Do nothing because this is fine.
5252
} else {

0 commit comments

Comments
 (0)