Skip to content

Commit 01aaf7d

Browse files
authored
fix: possible php error if redirect column is an empty string (#1821)
1 parent a65bb03 commit 01aaf7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function redirectUris(): Attribute
141141
{
142142
return Attribute::make(
143143
get: fn (?string $value, array $attributes): array => match (true) {
144-
isset($value) => $this->fromJson($value),
144+
! empty($value) => $this->fromJson($value),
145145
! empty($attributes['redirect']) => explode(',', $attributes['redirect']),
146146
default => [],
147147
},

0 commit comments

Comments
 (0)