diff --git a/infection.json5 b/infection.json5 index cbee8cb..22cb3c5 100644 --- a/infection.json5 +++ b/infection.json5 @@ -142,7 +142,11 @@ "SpreadRemoval": true, "Ternary": true, "This": true, - "Throw_": true, + "Throw_": { + "ignore": [ + "Nexus\\Encryption\\Key::__unserialize" + ] + }, "TrueValue": { "ignore": [ "Nexus\\Collection\\Collection::generateDiffHashTable" diff --git a/tools/src/InfectionConfigBuilder.php b/tools/src/InfectionConfigBuilder.php index f39f62e..e881e9f 100644 --- a/tools/src/InfectionConfigBuilder.php +++ b/tools/src/InfectionConfigBuilder.php @@ -16,6 +16,7 @@ use Infection\Mutator\ProfileList; use Nexus\Clock\SystemClock; use Nexus\Collection\Collection; +use Nexus\Encryption\Key; use Nexus\Password\Hash\Pbkdf2Hash; use Nexus\Password\Hash\SodiumHash; @@ -83,6 +84,9 @@ final class InfectionConfigBuilder 'ModEqual' => [ SystemClock::class, ], + 'Throw_' => [ + Key::class.'::__unserialize', + ], 'TrueValue' => [ Collection::class.'::generateDiffHashTable', ],