Skip to content

Commit 84ab458

Browse files
committed
Update infection builder
1 parent cf9760b commit 84ab458

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

infection.json5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@
142142
"SpreadRemoval": true,
143143
"Ternary": true,
144144
"This": true,
145-
"Throw_": true,
145+
"Throw_": {
146+
"ignore": [
147+
"Nexus\\Encryption\\Key::__unserialize"
148+
]
149+
},
146150
"TrueValue": {
147151
"ignore": [
148152
"Nexus\\Collection\\Collection::generateDiffHashTable"

tools/src/InfectionConfigBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Infection\Mutator\ProfileList;
1717
use Nexus\Clock\SystemClock;
1818
use Nexus\Collection\Collection;
19+
use Nexus\Encryption\Key;
1920
use Nexus\Password\Hash\Pbkdf2Hash;
2021
use Nexus\Password\Hash\SodiumHash;
2122

@@ -83,6 +84,9 @@ final class InfectionConfigBuilder
8384
'ModEqual' => [
8485
SystemClock::class,
8586
],
87+
'Throw_' => [
88+
Key::class.'::__unserialize',
89+
],
8690
'TrueValue' => [
8791
Collection::class.'::generateDiffHashTable',
8892
],

0 commit comments

Comments
 (0)