Project

General

Profile

Actions

Bug #91154

closed

null coalescing operator wrongly used when doing typecasts

Added by Thomas Pronold over 4 years ago. Updated over 4 years ago.

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

Also available in: Atom PDF