PHP deprecation fixes, assigning null arguments in methods
This commit is contained in:
@@ -206,7 +206,7 @@ class Product extends Model
|
||||
* @param Group|NULL $go
|
||||
* @return float
|
||||
*/
|
||||
private function _charge(string $type,int $timeperiod=NULL,Group $go=NULL): float
|
||||
private function _charge(string $type,?int $timeperiod=NULL,?Group $go=NULL): float
|
||||
{
|
||||
// We'll cache this for performance
|
||||
static $default = NULL;
|
||||
@@ -296,7 +296,7 @@ class Product extends Model
|
||||
* @param Group|null $go
|
||||
* @return float
|
||||
*/
|
||||
public function min_charge(int $timeperiod=NULL,Group $go=NULL): float
|
||||
public function min_charge(?int $timeperiod=NULL,?Group $go=NULL): float
|
||||
{
|
||||
return $this->setup_charge($timeperiod,$go)
|
||||
+ $this->base_charge($timeperiod,$go)*Invoice::billing_change($this->billing_interval,$this->type->billing_interval)*$this->contract_term;
|
||||
|
Reference in New Issue
Block a user