Skip to content

Commit

Permalink
Merge branch 'fouteox-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 16, 2024
2 parents fde2004 + 1002071 commit 4ee71c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
.php_cs
.php_cs.cache
.phpunit.cache
.phpunit.result.cache
build
composer.lock
Expand Down
6 changes: 5 additions & 1 deletion src/Http/Requests/LoginLinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public function rules(): array

public function userAttributes(): array
{
return json_decode($this->user_attributes, true) ?? [];
if ($this->user_attributes !== null) {
return json_decode($this->user_attributes, true);
}

return [];
}
}

0 comments on commit 4ee71c3

Please sign in to comment.