Skip to content
Snippets Groups Projects
Commit ae8010bf authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[TASK] Harden event listener automagic parameter type resolution

Do only auto-resolve the event name if the reflection type
of the first parameter is a ReflectionNamedType [1] as
only this subclass of ReflectionType defines the getName() method.

[1] https://www.php.net/manual/en/class.reflectionnamedtype.php

Commands executed:

  Build/Scripts/runTests.sh -s phpstanGenerateBaseline

Releases: main, 11.5
Resolves: #96704
Change-Id: If30b04d68f182920a3736fa5333b9d996e989528
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73248


Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
parent 1dafc1e7
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment