Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Commit

Permalink
laravel 5.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
melihovv committed Mar 2, 2019
1 parent e51c103 commit ba31257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
]
},
"require": {
"illuminate/container": "~5.5.0|~5.6.0|~5.7.0",
"illuminate/database": "~5.5.0|~5.6.0|~5.7.0",
"illuminate/redis": "~5.5.0|~5.6.0|~5.7.0",
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0"
"illuminate/container": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
"illuminate/database": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
"illuminate/redis": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0"
},
"require-dev": {
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0",
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0|~3.8.0",
"phpmd/phpmd": "^2.6",
"phpunit/phpunit": "~6.0|~7.0",
"predis/predis": "^1.1",
Expand Down
3 changes: 2 additions & 1 deletion src/ShoppingCart/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Melihovv\ShoppingCart;

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Arr;
use InvalidArgumentException;

class CartItem implements Arrayable
Expand Down Expand Up @@ -105,7 +106,7 @@ public static function fromArray(array $attributes)
$attributes['name'],
$attributes['price'],
$attributes['quantity'],
array_get($attributes, 'options', [])
Arr::get($attributes, 'options', [])
);
}

Expand Down

0 comments on commit ba31257

Please sign in to comment.