[BUGFIX] Add parenthesis where operation result is enforced
The coalesce operator has a relatively low precedence over other operators. If used as part of other expressions, it is almost always necessary to wrap it in parenthesis. Otherwise unexpected behaviour or undefined array key errors (in PHP 8.0) may occur. Resolves: #95482 Releases: master, 10.4 Change-Id: I4ddecdbeab03c215477f77742674ded01bc29257 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71449 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <bfr@qbus.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 1 addition, 1 deletion...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php 1 addition, 1 deletion...se/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 1 addition, 1 deletion.../Classes/ContentObject/Menu/AbstractMenuContentObject.php
- typo3/sysext/frontend/Classes/Http/RequestHandler.php 2 additions, 2 deletionstypo3/sysext/frontend/Classes/Http/RequestHandler.php
- typo3/sysext/impexp/Classes/Export.php 1 addition, 1 deletiontypo3/sysext/impexp/Classes/Export.php
- typo3/sysext/install/Classes/Updates/BackendUserLanguageMigration.php 1 addition, 1 deletion.../install/Classes/Updates/BackendUserLanguageMigration.php
Please register or sign in to comment