Actions
Bug #91154
closednull coalescing operator wrongly used when doing typecasts
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-21
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Searched through the code and found a couple wrongly used typecast in combination with null coalescing operator:
Like:
(int) $arr['number'] ?? 0
Should better be
(int) ($arr['number'] ?? 0)
Actions