Remove throwing of RuntimeException if RenderingContext is not desired type, replace with method presence checks.
Implementations of RenderingContext currently throws RuntimeException, but is technically compatible with other instance types of RenderingContext.
The goal of throwing the exception is to avoid calling methods that do not exist - this can be achieved by checking if the method exists.
#1 Updated by Gerrit Code Review 24 days ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63102