Private methods cannot be final as they are never overridden
-
Hello,
I am getting the following on PHP v8.0:
Warning: Private methods cannot be final as they are never overridden by other classes in /wp-content/plugins/ultimate-blocks/includes/Ultimate_Blocks_Version_Control.php on line 107
This is some nuance with php8 where private functions are just never supposed to be ‘final’. Random but figured I should notify you.
https://php.watch/versions/8.0/final-private-function
https://lindevs.com/private-method-declared-as-final-emits-warning-in-php-8-0
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Private methods cannot be final as they are never overridden’ is closed to new replies.