Skip to content

Commit 8eaf8fb

Browse files
claudedeviantintegral
authored andcommitted
chore: ignore equivalent YieldValue mutation in Har::splitLogEntries
The mutation from 'yield $index => $cloned' to 'yield $cloned' is equivalent because the entries array always has sequential 0-indexed keys, which matches PHP's auto-generated keys when the key is omitted.
1 parent 5886fd3 commit 8eaf8fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

infection.json5

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
]
77
},
88
"mutators": {
9-
"@default": true
9+
"@default": true,
10+
"YieldValue": {
11+
"ignore": [
12+
// Equivalent mutation: entries array always has sequential 0-indexed keys,
13+
// so yield $index => $cloned is equivalent to yield $cloned (PHP auto-generates same keys)
14+
"Deviantintegral\\Har\\Har::splitLogEntries"
15+
]
16+
}
1017
}
1118
}

0 commit comments

Comments
 (0)