Fix broadband plan change update
This commit is contained in:
@@ -184,11 +184,11 @@ class Product extends Model implements IDs
|
||||
/**
|
||||
* Return the type of service is provided. eg: Broadband, Phone.
|
||||
*
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCategoryAttribute(): string
|
||||
public function getCategoryAttribute(): ?string
|
||||
{
|
||||
return $this->supplied->getCategoryAttribute();
|
||||
return $this->supplied ? $this->supplied->getCategoryAttribute() : NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user