Skip to content

Commit 2ca96ee

Browse files
committed
Fixed compatibility with latest PHPStan
1 parent aa3f563 commit 2ca96ee

22 files changed

+62
-3
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ includes:
33
- vendor/phpstan/phpstan-phpunit/extension.neon
44
- vendor/phpstan/phpstan-phpunit/rules.neon
55
- vendor/phpstan/phpstan-strict-rules/rules.neon
6-
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
6+
- phar://phpstan.phar/conf/bleedingEdge.neon
77

88
parameters:
99
excludes_analyse:

src/Rules/Symfony/ContainerInterfacePrivateServiceRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use PHPStan\Type\ObjectType;
1212
use function sprintf;
1313

14+
/**
15+
* @implements Rule<MethodCall>
16+
*/
1417
final class ContainerInterfacePrivateServiceRule implements Rule
1518
{
1619

src/Rules/Symfony/ContainerInterfaceUnknownServiceRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use PHPStan\Type\ObjectType;
1313
use PHPStan\Type\Symfony\Helper;
1414

15+
/**
16+
* @implements Rule<MethodCall>
17+
*/
1518
final class ContainerInterfaceUnknownServiceRule implements Rule
1619
{
1720

src/Rules/Symfony/InvalidArgumentDefaultValueRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use PHPStan\Type\VerbosityLevel;
1919
use function sprintf;
2020

21+
/**
22+
* @implements Rule<MethodCall>
23+
*/
2124
final class InvalidArgumentDefaultValueRule implements Rule
2225
{
2326

src/Rules/Symfony/InvalidOptionDefaultValueRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
use PHPStan\Type\VerbosityLevel;
2222
use function sprintf;
2323

24+
/**
25+
* @implements Rule<MethodCall>
26+
*/
2427
final class InvalidOptionDefaultValueRule implements Rule
2528
{
2629

src/Rules/Symfony/UndefinedArgumentRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use function count;
1717
use function sprintf;
1818

19+
/**
20+
* @implements Rule<MethodCall>
21+
*/
1922
final class UndefinedArgumentRule implements Rule
2023
{
2124

src/Rules/Symfony/UndefinedOptionRule.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use function count;
1717
use function sprintf;
1818

19+
/**
20+
* @implements Rule<MethodCall>
21+
*/
1922
final class UndefinedOptionRule implements Rule
2023
{
2124

tests/Rules/Symfony/ContainerInterfacePrivateServiceRuleFakeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use PHPStan\Symfony\XmlServiceMapFactory;
77
use PHPStan\Testing\RuleTestCase;
88

9+
/**
10+
* @extends RuleTestCase<ContainerInterfacePrivateServiceRule>
11+
*/
912
final class ContainerInterfacePrivateServiceRuleFakeTest extends RuleTestCase
1013
{
1114

tests/Rules/Symfony/ContainerInterfacePrivateServiceRuleTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use PHPStan\Symfony\XmlServiceMapFactory;
77
use PHPStan\Testing\RuleTestCase;
88

9+
/**
10+
* @extends RuleTestCase<ContainerInterfacePrivateServiceRule>
11+
*/
912
final class ContainerInterfacePrivateServiceRuleTest extends RuleTestCase
1013
{
1114

tests/Rules/Symfony/ContainerInterfaceUnknownServiceRuleFakeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension;
1010
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
1111

12+
/**
13+
* @extends RuleTestCase<ContainerInterfaceUnknownServiceRule>
14+
*/
1215
final class ContainerInterfaceUnknownServiceRuleFakeTest extends RuleTestCase
1316
{
1417

0 commit comments

Comments
 (0)