File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
33namespace PHPStan \Rules \PHPUnit ;
44
5+ use PhpParser \Node ;
56use PHPStan \Testing \CompositeRule ;
67use PHPStan \Rules \Methods \CallMethodsRule ;
78use PHPStan \Rules \PHPUnit \DataProviderDataRule ;
@@ -21,7 +22,8 @@ protected function getRule(): Rule
2122 {
2223 $ reflectionProvider = $ this ->createReflectionProvider ();
2324
24- return new CompositeRule ([
25+ /** @var list<Rule<Node>> $rules */
26+ $ rules = [
2527 new DataProviderDataRule (
2628 new TestMethodsHelper (
2729 self ::getContainer ()->getByType (FileTypeMapper::class),
@@ -36,7 +38,9 @@ protected function getRule(): Rule
3638
3739 ),
3840 self ::getContainer ()->getByType (CallMethodsRule::class) /** @phpstan-ignore phpstanApi.classConstant */
39- ]);
41+ ];
42+
43+ return new CompositeRule ($ rules );
4044 }
4145
4246 public function testRule (): void
You can’t perform that action at this time.
0 commit comments