We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993f8e3 commit 629517aCopy full SHA for 629517a
src/Model.php
@@ -437,6 +437,10 @@ private static function getInstance()
437
438
private function castTo($column, $value)
439
{
440
+ if (\is_null($value)) {
441
+ return $value;
442
+ }
443
+
444
if (
445
!isset($this->casts)
446
|| (isset($this->casts) && !isset($this->casts[$column]))
0 commit comments