1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Allow $client in driver() (CompanyGateway) to be nullable

This commit is contained in:
Benjamin Beganović 2021-08-02 14:47:34 +02:00
parent 99d686a845
commit d3cc6d6014

View File

@ -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();