Skip to content

Commit 38effe0

Browse files
committed
restore interface
1 parent c65c1c1 commit 38effe0

41 files changed

Lines changed: 41 additions & 41 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/Rules/Doctrine/NoDoctrineListenerWithoutContractRule/NoDoctrineListenerWithoutContractRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function provideData(): Iterator
3131
]]];
3232
}
3333

34-
protected function getRule(): NoDoctrineListenerWithoutContractRule
34+
protected function getRule(): Rule
3535
{
3636
return new NoDoctrineListenerWithoutContractRule();
3737
}

tests/Rules/Doctrine/NoGetRepositoryOnServiceRepositoryEntityRule/NoGetRepositoryOnServiceRepositoryEntityRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function provideData(): Iterator
3939
yield [__DIR__ . '/Fixture/SkipGetRepositoryOnNormalRepository.php', []];
4040
}
4141

42-
protected function getRule(): NoGetRepositoryOnServiceRepositoryEntityRule
42+
protected function getRule(): Rule
4343
{
4444
$reflectionProvider = self::getContainer()->getByType(ReflectionProvider::class);
4545

tests/Rules/Doctrine/NoGetRepositoryOutsideServiceRule/NoGetRepositoryOutsideServiceRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function provideData(): Iterator
3737
yield [__DIR__ . '/Fixture/SkipDynamicClassConstFetch.php', []];
3838
}
3939

40-
protected function getRule(): NoGetRepositoryOutsideServiceRule
40+
protected function getRule(): Rule
4141
{
4242
return new NoGetRepositoryOutsideServiceRule();
4343
}

tests/Rules/Doctrine/NoParentRepositoryRule/NoParentRepositoryRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function provideData(): Iterator
2222
yield [__DIR__ . '/Fixture/SomeRepository.php', [[NoParentRepositoryRule::ERROR_MESSAGE, 9]]];
2323
}
2424

25-
protected function getRule(): NoParentRepositoryRule
25+
protected function getRule(): Rule
2626
{
2727
return new NoParentRepositoryRule();
2828
}

tests/Rules/Doctrine/NoRepositoryCallInDataFixtureRule/NoRepositoryCallInDataFixtureRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function provideData(): Iterator
3030
yield [__DIR__ . '/Fixture/SkipNonFixtureClass.php', []];
3131
}
3232

33-
protected function getRule(): NoRepositoryCallInDataFixtureRule
33+
protected function getRule(): Rule
3434
{
3535
return new NoRepositoryCallInDataFixtureRule();
3636
}

tests/Rules/Doctrine/RequireQueryBuilderOnRepositoryRule/RequireQueryBuilderOnRepositoryRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function provideData(): Iterator
3232
]];
3333
}
3434

35-
protected function getRule(): RequireQueryBuilderOnRepositoryRule
35+
protected function getRule(): Rule
3636
{
3737
return new RequireQueryBuilderOnRepositoryRule();
3838
}

tests/Rules/Doctrine/RequireServiceRepositoryParentRule/RequireServiceRepositoryParentRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function provideData(): Iterator
2828
yield [__DIR__ . '/Fixture/SkipContractImplementingRepository.php', []];
2929
}
3030

31-
protected function getRule(): RequireServiceRepositoryParentRule
31+
protected function getRule(): Rule
3232
{
3333
return new RequireServiceRepositoryParentRule();
3434
}

tests/Rules/Explicit/NoProtectedClassStmtRule/NoProtectedClassStmtRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function provideData(): Iterator
2828
yield [__DIR__ . '/Fixture/SkipAbstractWithProtected.php', []];
2929
}
3030

31-
protected function getRule(): NoProtectedClassStmtRule
31+
protected function getRule(): Rule
3232
{
3333
return new NoProtectedClassStmtRule();
3434
}

tests/Rules/PHPUnit/NoAssertFuncCallInTestsRule/NoAssertFuncCallInTestsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function provideData(): Iterator
2424
yield [__DIR__ . '/Fixture/SkipTestOutside.php', []];
2525
}
2626

27-
protected function getRule(): NoAssertFuncCallInTestsRule
27+
protected function getRule(): Rule
2828
{
2929
return new NoAssertFuncCallInTestsRule();
3030
}

tests/Rules/PHPUnit/NoDoubleConsecutiveTestMockRule/NoDoubleConsecutiveTestMockRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function provideData(): Iterator
2424
yield [__DIR__ . '/Fixture/SkipWillReturnCallback.php', []];
2525
}
2626

27-
protected function getRule(): NoDoubleConsecutiveTestMockRule
27+
protected function getRule(): Rule
2828
{
2929
return new NoDoubleConsecutiveTestMockRule();
3030
}

0 commit comments

Comments
 (0)