Skip to content

Commit 7e40315

Browse files
committed
Add codeCoverageIgnore comment
1 parent f462377 commit 7e40315

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Rules/PlaceholderCorrespondToKeysRule.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ private static function contextDoesNotHavePlaceholderKey(Type $arrayType, string
126126
$checkBraces = $braces;
127127
foreach ($constantArray->getKeyTypes() as $keyType) {
128128
if ($keyType->isString()->no()) {
129-
continue;
129+
// keyType is checked by ContextKeyRule
130+
// @codeCoverageIgnoreStart
131+
continue; // @codeCoverageIgnoreEnd
130132
}
131133

132134
$contextKeys[] = $keyType->getValue();

0 commit comments

Comments
 (0)