Open mariuswilms opened 10 years ago
How would you know unless you made an exception for each one?
If a method is protected, when overwriting it you can make it public.
A possible solution would be to inspect the parent/s method/property and check if already has been protected. The failing test here is with template/TemplateException overriding the $code property from: http://php.net/manual/de/class.exception.php
Some protected methods from core PHP class can only be overridden or reimplemented without using a leading underscore. This must be an exception.