Skip to content
Snippets Groups Projects
Commit 7fa71a1d authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Oliver Bartsch
Browse files

[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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent 2f96ed6a
Branches
Tags
No related merge requests found
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