[BUGFIX] Fix PHP 8 warning in TypoLinkCodecService
Added string cast before trimming $typoLink. Changed annotation to be string|null. With TYPO3 v13 string should be added to the methods signature and cast removed. In addition fixed some potential calls that could have sent null to the method, prophylactically. Resolves: #99975 Releases: main, 11.5 Change-Id: I8cbafa51d96e3ab35d39855831803897b4ff0035 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77887 Tested-by:Benni Mack <benni@typo3.org> Reviewed-by:
Marc Willmann <mw@f7.de> Reviewed-by:
Kevin Appelt <kevin.appelt@icloud.com> Reviewed-by:
Kay Strobach <typo3@kay-strobach.de> Tested-by:
Kay Strobach <typo3@kay-strobach.de> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Kevin Appelt <kevin.appelt@icloud.com> Tested-by:
Marc Willmann <mw@f7.de> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de>
Showing
- typo3/sysext/core/Classes/LinkHandling/TypoLinkCodecService.php 3 additions, 2 deletions...sysext/core/Classes/LinkHandling/TypoLinkCodecService.php
- typo3/sysext/fluid/Classes/ViewHelpers/Uri/TypolinkViewHelper.php 1 addition, 1 deletion...sext/fluid/Classes/ViewHelpers/Uri/TypolinkViewHelper.php
- typo3/sysext/frontend/Classes/Typolink/LinkFactory.php 1 addition, 1 deletiontypo3/sysext/frontend/Classes/Typolink/LinkFactory.php
Please register or sign in to comment