Skip to content

Commit a2ce25e

Browse files
Bump Enum to v4.1; all enum interfaces extend the EnumInterface
1 parent ad3a65e commit a2ce25e

11 files changed

+32
-10
lines changed

Changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- Dropped Laravel 9 support
77
- Dropped PHP 8.0 support
88
- Dropped Enum v3 Support
9+
- Changed minimum Enum version to v4.1
10+
- Changed all enum interfaces to extend the root `EnumInterface`
911

1012
## 2.8.0
1113
##### 2023-04-08

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Address Module for Laravel
22

3-
[![Tests](https://img.shields.io/github/actions/workflow/status/artkonekt/address/tests.yml?branch=2.x&style=flat-square)](https://github.com/artkonekt/address/actions?query=workflow%3Atests)
3+
[![Tests](https://img.shields.io/github/actions/workflow/status/artkonekt/address/tests.yml?branch=master&style=flat-square)](https://github.com/artkonekt/address/actions?query=workflow%3Atests)
44
[![Packagist Stable Version](https://img.shields.io/packagist/v/konekt/address.svg?style=flat-square&label=stable)](https://packagist.org/packages/konekt/address)
55
[![StyleCI](https://styleci.io/repos/74651867/shield?branch=master)](https://styleci.io/repos/74651867)
66
[![Packagist downloads](https://img.shields.io/packagist/dt/konekt/address.svg?style=flat-square)](https://packagist.org/packages/konekt/address)
77
[![MIT Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)
88

99
This library adds address related support for countries, provinces (state, county, region, etc), cities, addresses, organizations, people and locations.
1010

11-
Being a [Concord Module](https://konekt.dev/concord/1.9/modules) it is intended to be used by Laravel Applications.
11+
Being a [Concord Module](https://konekt.dev/concord/1.x/modules) it is intended to be used by Laravel Applications.
1212

1313
## Documentation
1414

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"illuminate/support": "^10.0",
2121
"doctrine/dbal": "^3.5.1",
2222
"konekt/concord": "^1.13",
23-
"konekt/enum": "^4.0",
23+
"konekt/enum": "^4.1",
2424
"konekt/enum-eloquent": "^1.9"
2525
},
2626
"autoload": {

docs/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ php artisan concord:modules -a
2121
+----+-----------------------+--------+---------+------------------+-----------------+
2222
| # | Name | Kind | Version | Id | Namespace |
2323
+----+-----------------------+--------+---------+------------------+-----------------+
24-
| 1. | Konekt Address Module | Module | 2.8.0 | konekt.address | Konekt\Address |
24+
| 1. | Konekt Address Module | Module | 3.x-dev | konekt.address | Konekt\Address |
2525
+----+-----------------------+--------+---------+------------------+-----------------+
2626
```

docs/upgrade.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Upgrade
22

3+
## 2.x -> 3.x
4+
5+
The new minimal requirements are:
6+
7+
- PHP 8.1
8+
- Laravel 10
9+
- Enum 4.1
10+
311
## 1.x -> 2.x
412

513
The new minimal requirements are:

src/Contracts/AddressType.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
namespace Konekt\Address\Contracts;
1616

17-
interface AddressType
17+
use Konekt\Enum\EnumInterface;
18+
19+
interface AddressType extends EnumInterface
1820
{
1921
}

src/Contracts/Gender.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
namespace Konekt\Address\Contracts;
1616

17-
interface Gender
17+
use Konekt\Enum\EnumInterface;
18+
19+
interface Gender extends EnumInterface
1820
{
1921
}

src/Contracts/NameOrder.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
namespace Konekt\Address\Contracts;
1616

17-
interface NameOrder
17+
use Konekt\Enum\EnumInterface;
18+
19+
interface NameOrder extends EnumInterface
1820
{
1921
}

src/Contracts/ProvinceType.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
namespace Konekt\Address\Contracts;
1616

17-
interface ProvinceType
17+
use Konekt\Enum\EnumInterface;
18+
19+
interface ProvinceType extends EnumInterface
1820
{
1921
}

src/Contracts/ZoneMemberType.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
namespace Konekt\Address\Contracts;
1616

17-
interface ZoneMemberType
17+
use Konekt\Enum\EnumInterface;
18+
19+
interface ZoneMemberType extends EnumInterface
1820
{
1921
}

src/Contracts/ZoneScope.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
namespace Konekt\Address\Contracts;
1616

17-
interface ZoneScope
17+
use Konekt\Enum\EnumInterface;
18+
19+
interface ZoneScope extends EnumInterface
1820
{
1921
}

0 commit comments

Comments
 (0)