Skip to content

Commit 96b58ed

Browse files
committed
Add PbkdfHash::verify() to ignored in infection
1 parent be9a15e commit 96b58ed

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

infection.json5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@
9898
"LogicalAndSingleSubExprNegation": true,
9999
"LogicalLowerAnd": true,
100100
"LogicalLowerOr": true,
101-
"LogicalNot": true,
101+
"LogicalNot": {
102+
"ignore": [
103+
"Nexus\\Password\\Hash\\Pbkdf2Hash::verify"
104+
]
105+
},
102106
"LogicalOr": true,
103107
"LogicalOrAllSubExprNegation": true,
104108
"LogicalOrNegation": true,

tools/src/InfectionConfigBuilder.php

Lines changed: 16 additions & 4 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\Password\Hash\Pbkdf2Hash;
1920
use Nexus\Password\Hash\SodiumHash;
2021

2122
/**
@@ -63,13 +64,24 @@ final class InfectionConfigBuilder
6364
Collection::class.'::filterWithKey',
6465
Collection::class.'::reject',
6566
],
66-
'CastInt' => [SystemClock::class],
67+
'CastInt' => [
68+
SystemClock::class,
69+
],
6770
'CastString' => [
6871
Collection::class.'::toArrayKey',
6972
],
70-
'Division' => [SystemClock::class],
71-
'LogicalAnd' => [SodiumHash::class.'::valid'],
72-
'ModEqual' => [SystemClock::class],
73+
'Division' => [
74+
SystemClock::class,
75+
],
76+
'LogicalAnd' => [
77+
SodiumHash::class.'::valid',
78+
],
79+
'LogicalNot' => [
80+
Pbkdf2Hash::class.'::verify',
81+
],
82+
'ModEqual' => [
83+
SystemClock::class,
84+
],
7385
'TrueValue' => [
7486
Collection::class.'::generateDiffHashTable',
7587
],

0 commit comments

Comments
 (0)