[BUGFIX] Prevent TypeError for unsupported operand types
Since bitwise operators requires the operands to be integers, a possible raw database value for a checkbox element is now properly casted, before used as operand, preventing a TypeError. Note: PHP < 8, this only triggered a warning. Resolves: #97194 Releases: main, 11.5 Change-Id: I40b53ba4eb11341792649516de2f3c6b86ae5a61 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73957 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 5 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 2 additions, 2 deletions.../backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
Please register or sign in to comment