[FEATURE] Add trait to detect public deprecated methods 56/57156/8
authorBenni Mack <benni@typo3.org>
Sat, 9 Jun 2018 13:24:26 +0000 (15:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Jun 2018 07:49:02 +0000 (09:49 +0200)
commit7dd7146691ffac1c943f6107370e6f929a9302b9
treed22edf7b96c10403e3579abc0570502a5b9e6435
parent233e876814cfc82e99dc2067c7a59a21e84eec9c
[FEATURE] Add trait to detect public deprecated methods

The patch adds a new trait similar to the existing one for
propreties to allow setting public methods to protected in
a backwards compatible way.

Resolves: #85247
Related: #81330
Releases: master
Change-Id: Iaf6d7f328f7b5685e179f4a4b8f78fbeb419fb14
Reviewed-on: https://review.typo3.org/57156
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Compatibility/PublicMethodDeprecationTrait.php [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-85247-TraitToDetectPublicDeprecatedMethods.rst [new file with mode: 0644]
typo3/sysext/core/Tests/UnitDeprecated/Compatibility/Fixtures/PublicMethodDeprecationTraitTextFixture.php [new file with mode: 0644]
typo3/sysext/core/Tests/UnitDeprecated/Compatibility/PublicMethodDeprecationTraitTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/UnitDeprecated/Compatibility/PublicPropertyDeprecationTraitTest.php