Skip to content

Commit

Permalink
Remove return type declaration (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Carney authored Feb 28, 2020
1 parent ebb69cd commit 3ec60e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function customAttributes()
* @param string $externalId
* @return Customer|null
*/
public static function findByExternalId($externalId): ?Customer
public static function findByExternalId($externalId)
{
if (gettype($externalId) == 'string') {
$externalId = ['external_id' => $externalId];
Expand All @@ -113,7 +113,7 @@ public static function findByExternalId($externalId): ?Customer
return null;
}

return $response->first();
return $response->first() || null;
}

/**
Expand Down

0 comments on commit 3ec60e5

Please sign in to comment.