array_get deprecated

This commit is contained in:
Deon George
2020-01-11 22:05:05 +11:00
parent c941fcb148
commit 34c0380c99
6 changed files with 12 additions and 10 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr;
class InvoiceItem extends Model
{
@@ -68,7 +69,7 @@ class InvoiceItem extends Model
);
default:
return array_get($types,$this->item_type,'Unknown');
return Arr::get($types,$this->item_type,'Unknown');
}
}