Skip to content

Commit

Permalink
use correct operator (elvis operator) (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
imhmdb authored Apr 22, 2020
1 parent e670fc5 commit fa838d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static function findByExternalId($externalId)
return null;
}

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

/**
Expand Down

0 comments on commit fa838d2

Please sign in to comment.