Nullable return type

This commit is contained in:
Nabeel Shahzad 2022-02-04 14:15:42 -05:00
parent 74a1b4d753
commit cc5a6db427

View File

@ -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',