Skip to content

Commit

Permalink
Fixed unsafe null check
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed May 12, 2021
1 parent d5e9eef commit ab957a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Contact/Contact/CreateContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private function updateEmail(array $data, Contact $contact)
'type' => ContactFieldType::EMAIL,
])->first();

if (is_null($contactFieldType) || is_null($data['email'])) {
if (is_null($contactFieldType) || is_null($this->nullOrvalue($data, 'email'))) {
return;
}

Expand Down

0 comments on commit ab957a6

Please sign in to comment.