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.
empty
1 parent 68eb458 commit a99a2d9Copy full SHA for a99a2d9
custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php
@@ -154,7 +154,7 @@ private function checkReturnTypeShape(string $subject)
154
}
155
156
foreach ($matches['nested'] as $index => $match) {
157
- if (!empty($matches['generic'][$index])) {
+ if ($matches['generic'][$index] === '') {
158
if (trim($matches['atom'][$index]) !== 'array') {
159
throw new \InvalidArgumentException('Unexpected generic specification in type "' . $matches[0][$index] . '"');
160
0 commit comments