22
33namespace Rules \PHPUnit ;
44
5- use PHPStan \Rules \CompositeRule ;
6- use PHPStan \Rules \DirectRegistry ;
7- use PHPStan \Rules \FunctionCallParametersCheck ;
5+ use PHPStan \Testing \CompositeRule ;
86use PHPStan \Rules \Methods \CallMethodsRule ;
9- use PHPStan \Rules \Methods \MethodCallCheck ;
10- use PHPStan \Rules \NullsafeCheck ;
11- use PHPStan \Rules \PhpDoc \UnresolvableTypeHelper ;
127use PHPStan \Rules \PHPUnit \DataProviderDataRule ;
138use PHPStan \Rules \PHPUnit \DataProviderHelper ;
14- use PHPStan \Rules \PHPUnit \PHPUnitVersionDetector ;
159use PHPStan \Rules \PHPUnit \TestMethodsHelper ;
16- use PHPStan \Rules \Properties \PropertyReflectionFinder ;
1710use PHPStan \Rules \Rule ;
18- use PHPStan \Rules \RuleLevelHelper ;
1911use PHPStan \Testing \RuleTestCase ;
2012use 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