From fa838d23def8dc559f17066d7b322c877a4eec4c Mon Sep 17 00:00:00 2001 From: Mohamad Bahamdain <34659256+imhmdb@users.noreply.github.com> Date: Wed, 22 Apr 2020 11:29:54 +0300 Subject: [PATCH] use correct operator (elvis operator) (#63) --- src/Customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Customer.php b/src/Customer.php index 56f2e6e..013eebf 100644 --- a/src/Customer.php +++ b/src/Customer.php @@ -113,7 +113,7 @@ public static function findByExternalId($externalId) return null; } - return $response->first() || null; + return $response->first() ?: null; } /**