Skip to content

Commit f1fb9a6

Browse files
authored
fix: phpstan issue - right side of || always false (#50453)
1 parent 5a7f633 commit f1fb9a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Casts/AsEnumArrayObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(array $arguments)
3030

3131
public function get($model, $key, $value, $attributes)
3232
{
33-
if (! isset($attributes[$key]) || is_null($attributes[$key])) {
33+
if (! isset($attributes[$key])) {
3434
return;
3535
}
3636

src/Illuminate/Database/Eloquent/Casts/AsEnumCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(array $arguments)
3030

3131
public function get($model, $key, $value, $attributes)
3232
{
33-
if (! isset($attributes[$key]) || is_null($attributes[$key])) {
33+
if (! isset($attributes[$key])) {
3434
return;
3535
}
3636

0 commit comments

Comments
 (0)