Skip to content

Commit 2cbafb6

Browse files
eiriksmondrejmirtes
authored andcommitted
Fix assertions for phpstan master
1 parent e5ccafb commit 2cbafb6

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.1 || ^8.0",
10-
"phpstan/phpstan": "^1.0"
10+
"phpstan/phpstan": "^1.3"
1111
},
1212
"require-dev": {
1313
"php-parallel-lint/php-parallel-lint": "^1.2",

Diff for: tests/Rules/Deprecations/CallToDeprecatedMethodRuleTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public function testDeprecatedMethodCall(): void
2323
'Call to deprecated method deprecatedFoo() of class CheckDeprecatedMethodCall\Foo.',
2424
7,
2525
],
26+
[
27+
'Call to deprecated method deprecatedFoo() of class CheckDeprecatedMethodCall\Bar.',
28+
10,
29+
],
2630
[
2731
'Call to deprecated method deprecatedFoo2() of class CheckDeprecatedMethodCall\Foo.',
2832
11,

Diff for: tests/Rules/Deprecations/CallToDeprecatedStaticMethodRuleTest.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function testDeprecatedStaticMethodCall(): void
2525
'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Foo.',
2626
6,
2727
],
28+
[
29+
'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Bar.',
30+
8,
31+
],
2832
[
2933
'Call to deprecated method deprecatedFoo2() of class CheckDeprecatedStaticMethodCall\Foo.',
3034
9,
@@ -59,7 +63,7 @@ public function testDeprecatedStaticMethodCall(): void
5963
],
6064
[
6165
'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Foo.',
62-
24,
66+
33,
6367
],
6468
]
6569
);

Diff for: tests/Rules/Deprecations/data/call-to-deprecated-static-method.php

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ public static function deprecatedFoo()
2626

2727
}
2828

29+
class Bar3 extends Foo
30+
{
31+
public static function callOtherDeprecatedMethod()
32+
{
33+
parent::deprecatedFoo();
34+
}
35+
}
36+
2937
/**
3038
* @deprecated
3139
*/

0 commit comments

Comments
 (0)