diff --git a/src/Illuminate/Database/Eloquent/Casts/AsEnumArrayObject.php b/src/Illuminate/Database/Eloquent/Casts/AsEnumArrayObject.php index f5f0571bca50..7909b197b87b 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsEnumArrayObject.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsEnumArrayObject.php @@ -30,7 +30,7 @@ public function __construct(array $arguments) public function get($model, $key, $value, $attributes) { - if (! isset($attributes[$key]) || is_null($attributes[$key])) { + if (! isset($attributes[$key])) { return; } diff --git a/src/Illuminate/Database/Eloquent/Casts/AsEnumCollection.php b/src/Illuminate/Database/Eloquent/Casts/AsEnumCollection.php index ff632ed223cd..926881287ef7 100644 --- a/src/Illuminate/Database/Eloquent/Casts/AsEnumCollection.php +++ b/src/Illuminate/Database/Eloquent/Casts/AsEnumCollection.php @@ -30,7 +30,7 @@ public function __construct(array $arguments) public function get($model, $key, $value, $attributes) { - if (! isset($attributes[$key]) || is_null($attributes[$key])) { + if (! isset($attributes[$key])) { return; }