Skip to content

Commit 0ad1a0b

Browse files
committed
restore interface
1 parent c65c1c1 commit 0ad1a0b

File tree

41 files changed

+82
-41
lines changed

Some content is hidden

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

41 files changed

+82
-41
lines changed

tests/Rules/Doctrine/NoDoctrineListenerWithoutContractRule/NoDoctrineListenerWithoutContractRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\NoDoctrineListenerWithoutContractRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -31,7 +32,7 @@ public static function provideData(): Iterator
3132
]]];
3233
}
3334

34-
protected function getRule(): NoDoctrineListenerWithoutContractRule
35+
protected function getRule(): Rule
3536
{
3637
return new NoDoctrineListenerWithoutContractRule();
3738
}

tests/Rules/Doctrine/NoGetRepositoryOnServiceRepositoryEntityRule/NoGetRepositoryOnServiceRepositoryEntityRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\NoGetRepositoryOnServiceRepositoryEntityRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Reflection\ReflectionProvider;
910
use PHPStan\Testing\RuleTestCase;
@@ -39,7 +40,7 @@ public static function provideData(): Iterator
3940
yield [__DIR__ . '/Fixture/SkipGetRepositoryOnNormalRepository.php', []];
4041
}
4142

42-
protected function getRule(): NoGetRepositoryOnServiceRepositoryEntityRule
43+
protected function getRule(): Rule
4344
{
4445
$reflectionProvider = self::getContainer()->getByType(ReflectionProvider::class);
4546

tests/Rules/Doctrine/NoGetRepositoryOutsideServiceRule/NoGetRepositoryOutsideServiceRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\NoGetRepositoryOutsideServiceRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -37,7 +38,7 @@ public static function provideData(): Iterator
3738
yield [__DIR__ . '/Fixture/SkipDynamicClassConstFetch.php', []];
3839
}
3940

40-
protected function getRule(): NoGetRepositoryOutsideServiceRule
41+
protected function getRule(): Rule
4142
{
4243
return new NoGetRepositoryOutsideServiceRule();
4344
}

tests/Rules/Doctrine/NoParentRepositoryRule/NoParentRepositoryRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\NoParentRepositoryRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -22,7 +23,7 @@ public static function provideData(): Iterator
2223
yield [__DIR__ . '/Fixture/SomeRepository.php', [[NoParentRepositoryRule::ERROR_MESSAGE, 9]]];
2324
}
2425

25-
protected function getRule(): NoParentRepositoryRule
26+
protected function getRule(): Rule
2627
{
2728
return new NoParentRepositoryRule();
2829
}

tests/Rules/Doctrine/NoRepositoryCallInDataFixtureRule/NoRepositoryCallInDataFixtureRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\NoRepositoryCallInDataFixtureRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -30,7 +31,7 @@ public static function provideData(): Iterator
3031
yield [__DIR__ . '/Fixture/SkipNonFixtureClass.php', []];
3132
}
3233

33-
protected function getRule(): NoRepositoryCallInDataFixtureRule
34+
protected function getRule(): Rule
3435
{
3536
return new NoRepositoryCallInDataFixtureRule();
3637
}

tests/Rules/Doctrine/RequireQueryBuilderOnRepositoryRule/RequireQueryBuilderOnRepositoryRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\RequireQueryBuilderOnRepositoryRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -32,7 +33,7 @@ public static function provideData(): Iterator
3233
]];
3334
}
3435

35-
protected function getRule(): RequireQueryBuilderOnRepositoryRule
36+
protected function getRule(): Rule
3637
{
3738
return new RequireQueryBuilderOnRepositoryRule();
3839
}

tests/Rules/Doctrine/RequireServiceRepositoryParentRule/RequireServiceRepositoryParentRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Doctrine\RequireServiceRepositoryParentRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -28,7 +29,7 @@ public static function provideData(): Iterator
2829
yield [__DIR__ . '/Fixture/SkipContractImplementingRepository.php', []];
2930
}
3031

31-
protected function getRule(): RequireServiceRepositoryParentRule
32+
protected function getRule(): Rule
3233
{
3334
return new RequireServiceRepositoryParentRule();
3435
}

tests/Rules/Explicit/NoProtectedClassStmtRule/NoProtectedClassStmtRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Explicit\NoProtectedClassStmtRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -28,7 +29,7 @@ public static function provideData(): Iterator
2829
yield [__DIR__ . '/Fixture/SkipAbstractWithProtected.php', []];
2930
}
3031

31-
protected function getRule(): NoProtectedClassStmtRule
32+
protected function getRule(): Rule
3233
{
3334
return new NoProtectedClassStmtRule();
3435
}

tests/Rules/PHPUnit/NoAssertFuncCallInTestsRule/NoAssertFuncCallInTestsRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\PHPUnit\NoAssertFuncCallInTestsRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -24,7 +25,7 @@ public static function provideData(): Iterator
2425
yield [__DIR__ . '/Fixture/SkipTestOutside.php', []];
2526
}
2627

27-
protected function getRule(): NoAssertFuncCallInTestsRule
28+
protected function getRule(): Rule
2829
{
2930
return new NoAssertFuncCallInTestsRule();
3031
}

tests/Rules/PHPUnit/NoDoubleConsecutiveTestMockRule/NoDoubleConsecutiveTestMockRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\PHPUnit\NoDoubleConsecutiveTestMockRule;
66

7+
use PHPStan\Rules\Rule;
78
use Iterator;
89
use PHPStan\Testing\RuleTestCase;
910
use PHPUnit\Framework\Attributes\DataProvider;
@@ -24,7 +25,7 @@ public static function provideData(): Iterator
2425
yield [__DIR__ . '/Fixture/SkipWillReturnCallback.php', []];
2526
}
2627

27-
protected function getRule(): NoDoubleConsecutiveTestMockRule
28+
protected function getRule(): Rule
2829
{
2930
return new NoDoubleConsecutiveTestMockRule();
3031
}

0 commit comments

Comments
 (0)