File tree Expand file tree Collapse file tree
tests/Rules/Doctrine/NoDocumentMockingRule Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use PHPStan \Rules \Rule ;
1010use PHPStan \Testing \RuleTestCase ;
1111use PHPUnit \Framework \Attributes \DataProvider ;
12+ use Symplify \PHPStanRules \Rules \Doctrine \NoDocumentMockingRule ;
1213use Symplify \PHPStanRules \Rules \Doctrine \NoGetRepositoryOnServiceRepositoryEntityRule ;
1314use Symplify \PHPStanRules \Tests \Rules \Doctrine \NoGetRepositoryOnServiceRepositoryEntityRule \Source \Repository \SomeServiceRepository ;
1415
@@ -39,8 +40,6 @@ public static function provideData(): Iterator
3940
4041 protected function getRule (): Rule
4142 {
42- $ reflectionProvider = self ::getContainer ()->getByType (ReflectionProvider::class);
43-
44- return new NoGetRepositoryOnServiceRepositoryEntityRule ($ reflectionProvider );
43+ return new NoDocumentMockingRule ();
4544 }
4645}
You can’t perform that action at this time.
0 commit comments