From 35db607963a387171e182c53edf1fa8a8bd70449 Mon Sep 17 00:00:00 2001 From: Ernestas Kvedaras Date: Tue, 8 Sep 2020 17:55:14 +0200 Subject: [PATCH] Add Laravel 8 support --- CHANGELOG-1.x.md | 19 +++++++++++++++++++ README.md | 6 ++++++ composer.json | 4 ++-- src/Enum.php | 2 +- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG-1.x.md diff --git a/CHANGELOG-1.x.md b/CHANGELOG-1.x.md new file mode 100644 index 0000000..94d2c1d --- /dev/null +++ b/CHANGELOG-1.x.md @@ -0,0 +1,19 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [1.0.1] - 2020-09-08 +### Updated +- Add support for Laravel 8 + +## [1.0.0] - 2020-08-31 +### Added +- Enum model property caster + +[Unreleased]: https://github.com/ekvedaras/php-enum/compare/v1.0.1...HEAD +[1.0.1]: https://github.com/ekvedaras/php-enum/compare/v1.0.0...v1.0.1 +[1.0.0]: https://github.com/ekvedaras/php-enum/releases/tag/v1.0.0 diff --git a/README.md b/README.md index 2cf6f32..12f1311 100644 --- a/README.md +++ b/README.md @@ -92,3 +92,9 @@ $rules = [ 'status' => 'in:' . PaymentStatus::keyString(), ]; ``` + +## Changelog + +See changes in changelog files: + +* [v1 changelog](CHANGELOG-1.x.md) diff --git a/composer.json b/composer.json index a9f480d..20a96cb 100644 --- a/composer.json +++ b/composer.json @@ -32,11 +32,11 @@ "php": "^7.2", "ext-json": "*", "ekvedaras/php-enum": "^1.1", - "illuminate/support": "^7" + "illuminate/support": "^7|^8" }, "require-dev": { "phpunit/phpunit": "^8.5.8", - "orchestra/testbench": "^5.4" + "orchestra/testbench": "^5.4|^6.0" }, "scripts": { "test": "phpunit", diff --git a/src/Enum.php b/src/Enum.php index 8fca75e..8c61bbf 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -14,7 +14,7 @@ class Enum extends BaseEnum implements Castable /** * @inheritDoc */ - public static function castUsing() + public static function castUsing(array $arguments = []) { return EnumCaster::class; }