From cc5a6db427ead3b91a7c029e8a31c6d7c47c268a Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 4 Feb 2022 14:15:42 -0500 Subject: [PATCH] Nullable return type --- app/Services/BidService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/BidService.php b/app/Services/BidService.php index 847aa482..2acc2401 100644 --- a/app/Services/BidService.php +++ b/app/Services/BidService.php @@ -33,7 +33,7 @@ class BidService extends Service * * @return \App\Models\Bid|\Illuminate\Database\Eloquent\Model|object|null */ - public function getBid(User $user, $bid_id): Bid + public function getBid(User $user, $bid_id): ?Bid { $with = [ 'flight',