@@ -20,8 +20,9 @@ |
||
| 20 | 20 | |
| 21 | 21 | private function processCasting(Attribute $attribute, $value) |
| 22 | 22 | { |
| 23 | - if ($attribute->isNullable() && $value === null) |
|
| 24 | - return $value; |
|
| 23 | + if ($attribute->isNullable() && $value === null) { |
|
| 24 | + return $value; |
|
| 25 | + } |
|
| 25 | 26 | |
| 26 | 27 | if (($castFunction = $attribute->getCast()) !== null && is_callable($castFunction)) { |
| 27 | 28 | return $castFunction($value); |