[CLEANUP] Change Enumeration::cast return doc to self 17/49717/2
authorSascha Egerer <sascha@sascha-egerer.de>
Thu, 1 Sep 2016 09:26:24 +0000 (11:26 +0200)
committerFrans Saris <franssaris@gmail.com>
Thu, 1 Sep 2016 12:35:51 +0000 (14:35 +0200)
commitee4953a3721f5377cdfbd72506c7604b8a1c936d
tree37f4e18b852293923d65d8dfd79e30b84205286a
parentcc85c21869e849d3efbdf784e214d826147da5ac
[CLEANUP] Change Enumeration::cast return doc to self

The Enumeration implementation has a cast() method that
does always return an instance of the enumeration
implementation itself. As the Enumeration is an abstract
type the cast() method return doc should be `self` instead
of `Enumeration`.
That does fix problems with code completion in IDEs as the
IDE does now know what exact implementation is returned.

Resolves: #77743
Releases: master, 7.6
Change-Id: Ib0f62f79e0856fe62849472a0a9c3657a048e028
Reviewed-on: https://review.typo3.org/49717
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Tested-by: Bamboo TYPO3com <info@typo3.com>
typo3/sysext/core/Classes/Type/Enumeration.php