Skip to content
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 rule that disallows final private methods #1490

Merged
merged 1 commit into from Jul 10, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Jul 1, 2022

Closes phpstan/phpstan#7507

Refs: https://wiki.php.net/rfc/inheritance_private_methods

Is this going in the right direction? I'm unsure about a few details, e.g.

  • is bleeding edge needed?
  • is the php version check needed?
  • is it ok to be ignorable? (it's "only" a warning after all)

@ondrejmirtes ondrejmirtes marked this pull request as ready for review July 10, 2022 12:37
@ondrejmirtes ondrejmirtes merged commit 6e2e26b into phpstan:1.8.x Jul 10, 2022
@ondrejmirtes
Copy link
Member

Thank you! I took the liberty to mark it as ready and merge it :)

About your questions - you made everything correct in your PR :) The ignorability is questionable, I'm 50-50 in this case.

@herndlm
Copy link
Contributor Author

herndlm commented Jul 10, 2022

Oh, he's back :)
OK perfect, thx!

@ondrejmirtes
Copy link
Member

Oh yes, I was on vacation and I have some more vacations planned this summer, so there are gonna be a few more breaks from processing the inbox :) The work breaks are nice but I'm gonna start missing the work eventually I think :)

@ondrejmirtes
Copy link
Member

I also wanted to tag PHPStan 1.8.1 on July 1st before leaving, but I couldn't crack a bug I introduced so I hope I'll be able to solve it now that I'm recharged :)

@herndlm herndlm deleted the feature-7507 branch July 10, 2022 13:02
@ondrejmirtes
Copy link
Member

Oh, I have an immediate bug report for you :) This doesn't apply to constructors so it shouldn't be reported for them: https://3v4l.org/qZkFv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants