From dd7bd75765b761b5326a9041461ed976acd25399 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Thu, 4 Jun 2020 23:11:11 +0200 Subject: [PATCH] Fix build --- composer.json | 2 +- .../Rules/Deprecations/CallToDeprecatedMethodRuleTest.php | 4 ---- .../Deprecations/CallToDeprecatedStaticMethodRuleTest.php | 8 ++++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index ae2deb8..d1d68ee 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ ], "require": { "php": "~7.1", - "phpstan/phpstan": "^0.12" + "phpstan/phpstan": "^0.12.26" }, "require-dev": { "consistence/coding-standard": "^3.0.1", diff --git a/tests/Rules/Deprecations/CallToDeprecatedMethodRuleTest.php b/tests/Rules/Deprecations/CallToDeprecatedMethodRuleTest.php index d22e834..70a7824 100644 --- a/tests/Rules/Deprecations/CallToDeprecatedMethodRuleTest.php +++ b/tests/Rules/Deprecations/CallToDeprecatedMethodRuleTest.php @@ -24,10 +24,6 @@ public function testDeprecatedMethodCall(): void 'Call to deprecated method deprecatedFoo() of class CheckDeprecatedMethodCall\Foo.', 7, ], - [ - 'Call to deprecated method deprecatedFoo() of class CheckDeprecatedMethodCall\Bar.', - 10, - ], [ 'Call to deprecated method deprecatedFoo2() of class CheckDeprecatedMethodCall\Foo.', 11, diff --git a/tests/Rules/Deprecations/CallToDeprecatedStaticMethodRuleTest.php b/tests/Rules/Deprecations/CallToDeprecatedStaticMethodRuleTest.php index f6ba0df..7eb6126 100644 --- a/tests/Rules/Deprecations/CallToDeprecatedStaticMethodRuleTest.php +++ b/tests/Rules/Deprecations/CallToDeprecatedStaticMethodRuleTest.php @@ -28,10 +28,6 @@ public function testDeprecatedStaticMethodCall(): void 'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Foo.', 6, ], - [ - 'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Bar.', - 8, - ], [ 'Call to deprecated method deprecatedFoo2() of class CheckDeprecatedStaticMethodCall\Foo.', 9, @@ -64,6 +60,10 @@ public function testDeprecatedStaticMethodCall(): void "Call to deprecated method deprecatedWithDescription() of class CheckDeprecatedStaticMethodCall\Foo:\nThis is probably a singleton.", 16, ], + [ + 'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Foo.', + 24, + ], ] ); }