We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c01ed6 + 327c41c commit b5b4ad3Copy full SHA for b5b4ad3
1 file changed
system/Entity.php
@@ -428,9 +428,13 @@ protected function mutateDate($value)
428
429
protected function castAs($value, string $type)
430
{
431
- if (substr($type, 0, 1) === '?' && $value === null)
+ if(substr($type,0,1) === '?')
432
433
- return null;
+ if($value === null)
434
+ {
435
+ return null;
436
+ }
437
+ $type = substr($type,1);
438
}
439
440
switch($type)
0 commit comments