This combination does not make sense and PHP 8 errors with:
Private methods cannot be final as they are never overridden by other classes
Thus remove the redundant final from all such functions.
Differential D21496
Remove final from private functions for PHP 8 compatibility jrtc27 on Jan 10 2021, 9:54 PM. Authored by Tags None Referenced Files
Subscribers
Details
This combination does not make sense and PHP 8 errors with: Private methods cannot be final as they are never overridden by other classes Thus remove the redundant final from all such functions. Used to create this revision with PHP 8 on macOS
Diff Detail
Event TimelineComment Actions Thanks! There are some similar linters already (e.g., for final in a final class, or final on an abstract method) but this particular combination (private + final) slipped through. I'll add a linter so these don't get re-introduced and apply an equivalent change to Phabricator. Comment Actions I added you to Blessed Committers, so you should be able to arc land this yourself. See the description of that project for more detailed instructions, or let me know if you run into issues. "Land Revision" here in the web UI should also work, or I can just pull it for you if that's easier. |