From 7059d81f4c8f65d54e01a62fc2ee068ea5f56b8b Mon Sep 17 00:00:00 2001 From: Attila Fulop <1162360+fulopattila122@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:53:25 +0200 Subject: [PATCH] The tax module requires Enum v4.1+ - The `TaxCategoryType` interface extends the `EnumInterface` --- src/Taxes/Changelog.md | 1 + src/Taxes/Contracts/TaxCategoryType.php | 4 +++- src/Taxes/composer.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Taxes/Changelog.md b/src/Taxes/Changelog.md index abb904120..333ef8b61 100644 --- a/src/Taxes/Changelog.md +++ b/src/Taxes/Changelog.md @@ -8,6 +8,7 @@ - Dropped PHP 8.0 & PHP 8.1 Support - Dropped Laravel 9 Support - Upgraded to Konekt Address v3 +- Changed the minimal Enum requirement to v4.1 - Added the `type` field to the TaxCategory model - Added the `Taxable` interface - Added the extendable `TaxEngine` (facade) that can resolve tax rates from taxables, billing/shipping addresses (a place for various country-specific taxation drivers) diff --git a/src/Taxes/Contracts/TaxCategoryType.php b/src/Taxes/Contracts/TaxCategoryType.php index 5ecb5463c..bc469ca51 100644 --- a/src/Taxes/Contracts/TaxCategoryType.php +++ b/src/Taxes/Contracts/TaxCategoryType.php @@ -14,6 +14,8 @@ namespace Vanilo\Taxes\Contracts; -interface TaxCategoryType +use Konekt\Enum\EnumInterface; + +interface TaxCategoryType extends EnumInterface { } diff --git a/src/Taxes/composer.json b/src/Taxes/composer.json index 2271e3606..bad8aa595 100644 --- a/src/Taxes/composer.json +++ b/src/Taxes/composer.json @@ -20,6 +20,7 @@ "php": "^8.2", "konekt/concord": "^1.13", "konekt/address": "^3.0", + "konekt/enum": "^4.1", "konekt/laravel-migration-compatibility": "^1.6", "vanilo/contracts": "^4.0", "vanilo/support": "^4.0",