Commit 8bf098a
authored
Property was not cast if was defined as nullable.
If property was defined as @nullable i.e.: `?array, ?json, ?json-array` then it was not cast .
Solution 1: add all cases with '?' at the beginning to switch.
Solution 2: change type if null was not returned at the beginning of castAs method. - i've picked this one.1 parent 3a4ade9 commit 8bf098a
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
432 | 439 | | |
433 | 440 | | |
434 | 441 | | |
| |||
0 commit comments