marc-mabe / php-enum

Simple and fast implementation of enumerations with native PHP
BSD 3-Clause "New" or "Revised" License
464 stars 36 forks source link

final modifier for private method is no longer allowed in PHP8 #147

Closed shmurakami closed 4 years ago

shmurakami commented 4 years ago

In PHP8 it occurs this warning.

Private methods cannot be final as they are never overridden by other classes

Caused by this PHP8 change https://wiki.php.net/rfc/inheritance_private_methods

private and final modifiers can't be used both.