diff --git a/src/Traits/CartOptionsMagicMethodsTrait.php b/src/Traits/CartOptionsMagicMethodsTrait.php index 61f88aa..e73c1e9 100644 --- a/src/Traits/CartOptionsMagicMethodsTrait.php +++ b/src/Traits/CartOptionsMagicMethodsTrait.php @@ -6,7 +6,6 @@ use LukePOLO\LaraCart\Exceptions\InvalidPrice; use LukePOLO\LaraCart\Exceptions\InvalidQuantity; use LukePOLO\LaraCart\Exceptions\InvalidTaxableValue; -use LukePOLO\LaraCart\LaraCart; /** * Class CartOptionsMagicMethodsTrait @@ -62,7 +61,7 @@ public function __set($option, $value) } break; case CartItem::ITEM_TAXABLE: - if (!is_bool($value)) { + if (!is_bool($value) && $value != 0 && $value != 1) { throw new InvalidTaxableValue('The taxable option must be a boolean'); } break;