-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add a config option to ignore self-deprecations #78
Comments
This should already work because accessing something deprecated from deprecated scope isn't reported. |
My bad, I made a mistake in my example. Indeed when the method is deprecated there is no issues.
and will be changed to
in next major, we have the phpstan error. (And we have a lot of code like this in the library) |
I started to think that maybe the notion of "self-deprecation" wasn't something easy for PHPStan.
But I think it could be ignored by something like
Does this feature would worth an option or do you think the regex-solution is enough ?
|
When exposing a library, you need to respect semantic versioning and avoid BC-break.
Let's say you have some code
An error is reported because
$this->foo;
is used but changing this/removing it would be a BC break.But the phpstan-deprecation-rules would still be useful to detect when I use a deprecated method from another library.
Is it possible to add an option in order to
?
The text was updated successfully, but these errors were encountered: