Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Provide defaults for when array data is not available (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed May 26, 2022
1 parent f10d9a9 commit 96ee05b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/StopForumSpam.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public function shouldPreventLogin(array $data, ?string $provider = null, ?array

if ($confidence >= $requiredConfidence || $frequency >= $requiredFrequency) {
$this->bus->dispatch(new RegistrationBlocked(
$data['username'],
$data['ip'],
$data['email'],
Arr::get($data, 'username', 'unknown'),
Arr::get($data, 'ip', 'unknown'),
Arr::get($data, 'email', 'unknown'),
$data,
$provider,
$providerData
Expand Down

0 comments on commit 96ee05b

Please sign in to comment.