Skip to content

Commit 272eb71

Browse files
committed
Update infection builder
1 parent a96c81c commit 272eb71

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

infection.json5

+5-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@
144144
"SpreadRemoval": true,
145145
"Ternary": true,
146146
"This": true,
147-
"Throw_": true,
147+
"Throw_": {
148+
"ignore": [
149+
"Nexus\\Encryption\\Key::__unserialize"
150+
]
151+
},
148152
"TrueValue": {
149153
"ignore": [
150154
"Nexus\\Collection\\Collection::generateDiffHashTable"

tools/src/InfectionConfigBuilder.php

+4
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

@@ -81,6 +82,9 @@ final class InfectionConfigBuilder
8182
'ModEqual' => [
8283
SystemClock::class,
8384
],
85+
'Throw_' => [
86+
Key::class.'::__unserialize',
87+
],
8488
'TrueValue' => [
8589
Collection::class.'::generateDiffHashTable',
8690
],

0 commit comments

Comments
 (0)