Feature: #85247 - Trait to detect public deprecated methods ¶
See Issue #85247
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
error is triggered.
Classes using this trait have a property
that lists all
methods covered by the trait.
Core classes using this trait trigger PHP
errors if an extension uses a method that
has been made protected using the trait functionality.