Skip to content
Snippets Groups Projects
Commit 0fb53e0c authored by Elias Häußler's avatar Elias Häußler Committed by Nikita Hovratov
Browse files

[BUGFIX] Avoid yoda-style conditions in PHP

The core team agreed on not using yoda-style conditions in PHP. An
appropriate PHP-CS-Fixer rule to explicitly disable yoda-style has
been added to ensure that this coding style is respected. Additionally,
all yoda-style conditions have been transformed to normal conditions.

Resolves: #97839
Releases: main, 11.5
Change-Id: Ic3a77fe412c15ec8c8d793f2b4aa6017562a4863
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75005


Reviewed-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
parent bc7e7de8
Branches
Tags
No related merge requests found
Showing
with 34 additions and 33 deletions
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