Releases: Lenius/basket
Releases · Lenius/basket
Cleanup
Remove php 7
What's Changed
- Configure Renovate by @renovate in #6
- Pin dependencies by @renovate in #7
- Update to php 8 by @cjonstrup in #15
New Contributors
Full Changelog: v4.0.2...v5.0.0
Tests updated to PHP 8.1
Tests updated to PHP 8.1
Php-cs-fixer updated
v4.0.1
PHP 7.4
Minor changes
v3.0.1 Fix headers already sent
Use Interface for Item
Breaking changes.
Basket insert only accept Class of type ItemInterface
$basket->insert(new Item([
'id' => 'foo',
'name' => 'bar',
'price' => 100,
'quantity' => 2,
'weight' => 300
]));
Fix docblock and more validation
Mostly code cleanup and phpstan fixes
Fix tax calculation with options
v2.0.1 Styleci - fix
New options structure
Possible breaking changes if you are using options.
New structure
$this->basket->insert([
'id' => 'foo',
'name' => 'bar',
'price' => 100,
'tax' => 25,
'quantity' => 1,
'weight' => 200,
'options' => [
[
'name' => 'size',
'price' => -20,
'weight' => 10,
],
[
'name' => 'color',
'price' => 50,
'weight' => -10,
],
],
]);