Skip to main content
5 events
when toggle format what by license comment
May 2, 2022 at 5:04 comment added user414301 As of PHP 8, private methods cannot be final, because they are never overridden by other classes anyway (unless the constructor). It never made sense to declare a private method as final because private methods cannot be overridden by child classes. However, since the trait is part of the class, it does not matter much anyway how much you protect or final, at all, since the class using the trait can override everything it uses, it only will matter when other child classes of the using class start messing with those methods. private is probably the best bet.
Mar 16, 2020 at 5:20 review Late answers
Mar 16, 2020 at 16:04
Mar 16, 2020 at 5:10 history edited LinuXpert CC BY-SA 4.0
deleted 7 characters in body
Mar 16, 2020 at 5:05 review First posts
Mar 30, 2020 at 5:05
Mar 16, 2020 at 5:02 history answered LinuXpert CC BY-SA 4.0