-
Notifications
You must be signed in to change notification settings - Fork 20
Fix: Remove expected error message #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,10 +53,6 @@ public function testDeprecatedStaticMethodCall(): void | |
| 'Call to deprecated method deprecatedFoo2() of class CheckDeprecatedStaticMethodCall\Foo.', | ||
| 13, | ||
| ], | ||
| [ | ||
| 'Call to deprecated method deprecatedFoo() of class CheckDeprecatedStaticMethodCall\Foo.', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because of phpstan-deprecation-rules/src/Rules/Deprecations/CallToDeprecatedStaticMethodRule.php Lines 43 to 45 in 1ed86a5
if (DeprecatedScopeHelper::isScopeDeprecated($scope)) {
return [];
}
and Lines 13 to 19 in 1ed86a5
/**
* @deprecated
*/
public static function deprecatedFoo()
{
}
and phpstan-deprecation-rules/tests/Rules/Deprecations/data/call-to-deprecated-static-method.php Lines 18 to 22 in 1ed86a5
public static function deprecatedFoo()
{
parent::foo();
parent::deprecatedFoo();
}
we never enter the scope of the deprecated method |
||
| 21, | ||
| ], | ||
| ] | ||
| ); | ||
| } | ||
|
|
||