Skip to content

Commit 74b67cf

Browse files
committed
use CompositeRule from phpstan-src
1 parent 7417fbc commit 74b67cf

File tree

2 files changed

+3
-55
lines changed

2 files changed

+3
-55
lines changed

tests/PHPStan/Rules/CompositeRule.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

tests/Rules/PHPUnit/DataProviderDataRuleTest.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@
22

33
namespace Rules\PHPUnit;
44

5-
use PHPStan\Rules\CompositeRule;
6-
use PHPStan\Rules\DirectRegistry;
7-
use PHPStan\Rules\FunctionCallParametersCheck;
5+
use PHPStan\Testing\CompositeRule;
86
use PHPStan\Rules\Methods\CallMethodsRule;
9-
use PHPStan\Rules\Methods\MethodCallCheck;
10-
use PHPStan\Rules\NullsafeCheck;
11-
use PHPStan\Rules\PhpDoc\UnresolvableTypeHelper;
127
use PHPStan\Rules\PHPUnit\DataProviderDataRule;
138
use PHPStan\Rules\PHPUnit\DataProviderHelper;
14-
use PHPStan\Rules\PHPUnit\PHPUnitVersionDetector;
159
use PHPStan\Rules\PHPUnit\TestMethodsHelper;
16-
use PHPStan\Rules\Properties\PropertyReflectionFinder;
1710
use PHPStan\Rules\Rule;
18-
use PHPStan\Rules\RuleLevelHelper;
1911
use PHPStan\Testing\RuleTestCase;
2012
use PHPStan\Type\FileTypeMapper;
2113

@@ -29,7 +21,7 @@ protected function getRule(): Rule
2921
{
3022
$reflectionProvider = $this->createReflectionProvider();
3123

32-
return new CompositeRule(new DirectRegistry([
24+
return new CompositeRule([
3325
new DataProviderDataRule(
3426
new TestMethodsHelper(
3527
self::getContainer()->getByType(FileTypeMapper::class),
@@ -44,7 +36,7 @@ protected function getRule(): Rule
4436

4537
),
4638
self::getContainer()->getByType(CallMethodsRule::class)
47-
]));
39+
]);
4840
}
4941

5042
public function testRule(): void

0 commit comments

Comments
 (0)