From 62625da88bd41b28ad45e5aeef267c3b15ecccc7 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Tue, 7 Jan 2025 18:40:03 +0800 Subject: [PATCH] Update infection builder --- infection.json5 | 6 +++++- tools/src/InfectionConfigBuilder.php | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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', ],