Fixed #2 + allow usage on php8 for cross compatibility

This commit is contained in:
Jérémy Munsch 2022-07-28 16:18:16 +02:00
parent bbd0872389
commit 5d116a8a7c
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
3 changed files with 2164 additions and 896 deletions

View file

@ -2,6 +2,14 @@
All notable changes to `Enum` will be documented in this file. All notable changes to `Enum` will be documented in this file.
## **Version 2.1.3**
### Fixed
- Allow usage on php 7.4 and more as php 8 for cross compatibility
- Bumped orchestra to 6 to allow unit test for all php versions
## **Version 2.1.2** ## **Version 2.1.2**
### Fixed ### Fixed

View file

@ -1,5 +1,6 @@
{ {
"name": "kwaadpepper/enum", "name": "kwaadpepper/enum",
"type": "library",
"description": "Enums to use for any project", "description": "Enums to use for any project",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
@ -15,14 +16,14 @@
"Enum" "Enum"
], ],
"require": { "require": {
"php": "^7.3" "php": ">=7.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~9.0", "phpunit/phpunit": "~9",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3",
"orchestra/testbench": "^5", "orchestra/testbench": "^6",
"slevomat/coding-standard": "^7.0", "slevomat/coding-standard": "^7",
"phpunit/php-code-coverage": "^9.2" "phpunit/php-code-coverage": "^9"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
@ -46,5 +47,10 @@
"@php ./vendor/bin/testbench package:discover --ansi" "@php ./vendor/bin/testbench package:discover --ansi"
], ],
"test": "vendor/bin/phpunit" "test": "vendor/bin/phpunit"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
} }
} }

3034
composer.lock generated

File diff suppressed because it is too large Load diff