Skip to content

Commit adde66a

Browse files
committed
Fix internal class usages
1 parent 0dc3d72 commit adde66a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/Password/Hash/BcryptHashTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testPassingCostWithinBoundsDoesNotThrow(): void
5656
{
5757
foreach (range(BcryptHash::MINIMUM_COST, BcryptHash::MAXIMUM_COST) as $cost) {
5858
new BcryptHash(Algorithm::Bcrypt, compact('cost'));
59-
$this->addToAssertionCount(1);
59+
$this->expectNotToPerformAssertions();
6060
}
6161
}
6262

tools/src/InfectionConfigBuilder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
/**
2323
* Inspired from https://github.com/kubawerlos/php-cs-fixer-custom-fixers/blob/main/.dev-tools/src/InfectionConfigBuilder.php.
24-
*
25-
* @internal
2624
*/
2725
final class InfectionConfigBuilder
2826
{
@@ -126,7 +124,7 @@ public static function build(): array
126124
'testFrameworkOptions' => '--group=unit-test',
127125
];
128126

129-
$mutators = array_keys(ProfileList::ALL_MUTATORS);
127+
$mutators = array_keys(ProfileList::ALL_MUTATORS); // @phpstan-ignore classConstant.internalClass
130128
sort($mutators);
131129

132130
foreach ($mutators as $mutator) {

0 commit comments

Comments
 (0)