Skip to content

Commit cfbf413

Browse files
phpstan-botclaude
authored andcommitted
Annotate duplicate array_key_exists assertType with '// could be true'
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent e6a3a3e commit cfbf413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/PHPStan/Analyser/nsrt/bug-14705.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function arrayKeyExistsDuplicateInLoop(array $theInput, array $theTags):
142142
continue;
143143
}
144144
assertType('false', !array_key_exists($tag, $theInput));
145-
assertType('bool', array_key_exists($tag, $theInput));
145+
assertType('bool', array_key_exists($tag, $theInput)); // could be true
146146
}
147147
}
148148

0 commit comments

Comments
 (0)