Feature: #85247 - Trait to detect public deprecated methods¶
See forge#85247
Description¶
The trait TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait
has been added
to allow setting public methods to protected in a backwards compatible way.
The core uses this trait to set public methods that should be protected or private but
are accessible code wise for historical reasons, while extensions using the methods do not
break, but a PHP E_USER_DEPRECATED
error is triggered.
Classes using this trait have a property $deprecatedPublicMethods
that lists all
methods covered by the trait.
Impact¶
Core classes using this trait trigger PHP E_USER_DEPRECATED
errors if an extension uses a method that
has been made protected using the trait functionality.