From d3cc6d60145b8dcdbe94b2dcea987f42c030bdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 2 Aug 2021 14:47:34 +0200 Subject: [PATCH] Allow $client in driver() (CompanyGateway) to be nullable --- app/Models/CompanyGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/CompanyGateway.php b/app/Models/CompanyGateway.php index b9105b566e9e..f7efd1c79e2c 100644 --- a/app/Models/CompanyGateway.php +++ b/app/Models/CompanyGateway.php @@ -118,7 +118,7 @@ class CompanyGateway extends BaseModel } /* This is the public entry point into the payment superclass */ - public function driver(Client $client) + public function driver(Client $client = null) { $class = static::driver_class();