NULL value throws error in function data type checking with NULL_SUPPORT enabled

Description

After enabling complete null support, I assumed that any native data type would accept the value Null however, only String and Numeric did. I compared this behavior with ACF 2018 with null support enabled as well and it seems to handle it like I expected.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 createPerson(null, null, null, null, null, null, null); public struct function createPerson( required string fullName, required numeric age, required boolean isDeveloper, required date birthdate, required array tasks, required struct DNA, required query logs ) { return arguments; }

Errors:
"Message":invalid call of the function createPerson, 3th Argument (isDeveloper) is of invalid type, can't cast Null value to value of type [boolean]

"Message": "invalid call of the function createPerson, 4th Argument (birthdate) is of invalid type, can't cast Null value to value of type [date]"

Same type of error with the rest of the parameters

Environment

None

Status

Assignee

Michael Offner

Reporter

Danny Amor

Labels

None

Affects versions

5.3.3.14

Priority

New
Configure