[TASK] Use a reference variable to pass $this into hooks 36/63036/4
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Sat, 25 Jan 2020 16:52:28 +0000 (17:52 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 14 Feb 2020 19:48:41 +0000 (20:48 +0100)
commit13a93b2fe9beff99c07ebfd12d88a46f92e6ba24
tree392b27dada5f29ae28ef14f86796d62f102ffcc3
parent266bf67fa9de545b3babe288d1da3c0c9422f695
[TASK] Use a reference variable to pass $this into hooks

Unfortunately phpstan looses the correct type of $this
as soon as $this is passed into a hooked as a hook method
parameter without a specific type. This leads to phpstan
losing the information about available methods and properties
of $this.

Releases: master
Resolves: #90204
Change-Id: I6fdb4f07dd970a1602a7afbbf662b29f2a927a15
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63036
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php