From c66dbf04efded4eed4ce6585a27b06a54ec0c952 Mon Sep 17 00:00:00 2001 From: Attila Fulop Date: Sun, 8 Sep 2019 06:32:24 +0200 Subject: [PATCH] Laravel 6.0 test has been added on travis; metadata updates --- .travis.yml | 15 ++------------- Changelog.md | 2 ++ README.md | 2 +- composer.json | 10 +++++++++- tests/Models/OrderStatusV2.php | 3 +-- tests/Models/OrderStatusVX.php | 3 +-- tests/Models/OrderV2.php | 3 +-- tests/Models/OrderVX.php | 3 +-- 8 files changed, 18 insertions(+), 23 deletions(-) diff --git a/.travis.yml b/.travis.yml index c7f6f75..30422ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,24 +15,13 @@ env: - ENUM=2 LARAVEL=5.6 - ENUM=2 LARAVEL=5.7 - ENUM=2 LARAVEL=5.8 + - ENUM=2 LARAVEL=6.0 - ENUM=3 LARAVEL=5.4 - ENUM=3 LARAVEL=5.5 - ENUM=3 LARAVEL=5.6 - ENUM=3 LARAVEL=5.7 - ENUM=3 LARAVEL=5.8 - -matrix: - include: - - php: 7.0 - env: ENUM=2 LARAVEL=5.0 - - php: 7.0 - env: ENUM=2 LARAVEL=5.1 - - php: 7.0 - env: ENUM=2 LARAVEL=5.2 - - php: 7.0 - env: ENUM=2 LARAVEL=5.3 - - php: 7.0 - env: ENUM=2 LARAVEL=5.4 + - ENUM=3 LARAVEL=6.0 script: - vendor/bin/phpunit -c phpunit.xml tests/ diff --git a/Changelog.md b/Changelog.md index 42d0d5e..187b3bb 100644 --- a/Changelog.md +++ b/Changelog.md @@ -8,6 +8,8 @@ - Added make:enum commands (when using in a Laravel application) - Enum 3.0.0 is supported +- Dropped PHP 7.0 Support +- Added Laravel 6.0 Support - Updated references to https://konekt.dev/enum website ## 1.2 diff --git a/README.md b/README.md index 8d727c1..1795b09 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Packagist Stable Version](https://img.shields.io/packagist/v/konekt/enum-eloquent.svg?style=flat-square&label=stable)](https://packagist.org/packages/konekt/enum-eloquent) [![Packagist downloads](https://img.shields.io/packagist/dt/konekt/enum-eloquent.svg?style=flat-square)](https://packagist.org/packages/konekt/enum-eloquent) [![StyleCI](https://styleci.io/repos/105900484/shield?branch=master)](https://styleci.io/repos/105900484) -[![MIT Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.md) +[![MIT Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE) This package provides support for auto casting [konekt enum](https://konekt.dev/enum) fields in [Eloquent models](https://laravel.com/docs/5.4/eloquent-mutators). diff --git a/composer.json b/composer.json index 2f3e568..2258eb6 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,18 @@ { "name": "Attila Fulop", "homepage": "https://github.com/fulopattila122" + }, + { + "name": "Semyon Chetvertnyh", + "homepage": "https://github.com/semyonchetvertnyh" + }, + { + "name": "Mark Boessenkool", + "homepage": "https://github.com/TheM1984" } ], "require": { - "php": ">=7.0.0", + "php": "^7.1.3", "konekt/enum": "^2.0.2 || ^3.0.0", "illuminate/database": "5.*" }, diff --git a/tests/Models/OrderStatusV2.php b/tests/Models/OrderStatusV2.php index de65a6c..15fe9f0 100644 --- a/tests/Models/OrderStatusV2.php +++ b/tests/Models/OrderStatusV2.php @@ -2,14 +2,13 @@ /** * Contains the OrderStatus class with Enum version 2 default. * - * @copyright Copyright (c) 2017 Attila Fulop + * @copyright Copyright (c) 2019 Mark Boessenkool * @author Mark Boessenkool * @license MIT * @since 2019-09-03 * */ - namespace Konekt\Enum\Eloquent\Tests\Models; use Konekt\Enum\Enum; diff --git a/tests/Models/OrderStatusVX.php b/tests/Models/OrderStatusVX.php index 915531a..0ac0c98 100644 --- a/tests/Models/OrderStatusVX.php +++ b/tests/Models/OrderStatusVX.php @@ -2,14 +2,13 @@ /** * Contains the OrderStatus class with Enum version 2 and 3 default. * - * @copyright Copyright (c) 2017 Attila Fulop + * @copyright Copyright (c) 2019 Mark Boessenkool * @author Mark Boessenkool * @license MIT * @since 2019-09-03 * */ - namespace Konekt\Enum\Eloquent\Tests\Models; use Konekt\Enum\Enum; diff --git a/tests/Models/OrderV2.php b/tests/Models/OrderV2.php index be10590..8737295 100644 --- a/tests/Models/OrderV2.php +++ b/tests/Models/OrderV2.php @@ -2,14 +2,13 @@ /** * Contains the Order model class for Enum version 2 default. * - * @copyright Copyright (c) 2017 Attila Fulop + * @copyright Copyright (c) 2019 Mark Boessenkool * @author Mark Boessenkool * @license MIT * @since 2019-09-03 * */ - namespace Konekt\Enum\Eloquent\Tests\Models; use Illuminate\Database\Eloquent\Model; diff --git a/tests/Models/OrderVX.php b/tests/Models/OrderVX.php index 9ef2a73..f7fff13 100644 --- a/tests/Models/OrderVX.php +++ b/tests/Models/OrderVX.php @@ -2,14 +2,13 @@ /** * Contains the Order model class for Enum version 2 and 3 default. * - * @copyright Copyright (c) 2017 Attila Fulop + * @copyright Copyright (c) 2019 Mark Boessenkool * @author Mark Boessenkool * @license MIT * @since 2019-09-03 * */ - namespace Konekt\Enum\Eloquent\Tests\Models; use Illuminate\Database\Eloquent\Model;