[CLEANUP] Change Enumeration::cast return doc to self 11/49711/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:22:27 +0000 (14:22 +0200)
commitd4ef7b5785a8beaf28bec82664c8c0644cd5651f
tree03abf899aad5110713e2280dcc0f66d258bf152f
parent2be25872f6b8e342ef9a52bba985a94c3bbc9aa7
[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/49711
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Type/Enumeration.php