We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8244d9 commit c54d9a8Copy full SHA for c54d9a8
1 file changed
src/Analyser/TypeSpecifier.php
@@ -749,9 +749,7 @@ public function specifyTypesInCondition(
749
$isNonEmpty = $arrayType->isIterableAtLeastOnce()->yes();
750
}
751
752
- if (
753
- $isNonEmpty
754
- ) {
+ if ($isNonEmpty) {
755
$dimFetch = new ArrayDimFetch($arrayArg, $expr->var);
756
$iterableValueType = $expr->expr->name->toLowerString() === 'array_key_first'
757
? $arrayType->getIterableValueType()
0 commit comments