TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #97839
Issue Task Closed

#97839Extend PHP-CS-Fixer to avoid yoda style

Björn Jacob 07/01/22, 08:35 updated 10/04/22, 14:05

Open in Forge Comment in Forge

Description

The PHP-CS-Fixer config should be extended to avoid yoda style. ATM, there are 18 occurrences across the core. The problem was raised while reviewing https://review.typo3.org/c/Packages/TYPO3.CMS/+/74492/.

Reviews 2

  • 11.5 75008[BUGFIX] Avoid yoda-style conditions in PHP Resolves this issue Merged Nikita Hovratov CR +2 V +2 → main Normal +38 −37 07/01/22, 10:28
  • main 75005[BUGFIX] Avoid yoda-style conditions in PHP Resolves this issue Merged Elias Häußler CR +2 V +2 → 11.5 Normal +34 −33 07/01/22, 09:37

Related issues 1

  • Bug #87675email2sender finisher: labels not translated correctly when override finisher settings is used Related to Resolved Form Framework v11 Aurelius Hogan 02/07/19, 15:58
Author
Björn Jacob
Priority
Should have
TYPO3 version
12
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback