From 0e728b636373f57f4afb068a914a1e85e5099f40 Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Mon, 6 Feb 2023 04:03:37 +0100 Subject: [PATCH 1/9] Add Dependabot --- .github/dependabot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..162da22 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + target-branch: "develop" + schedule: + interval: "monthly" + open-pull-requests-limit: 5 From 4e0df2ec5a4d2c9f84719d1677d6a9dcfa5fdb1e Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Mon, 6 Feb 2023 04:03:44 +0100 Subject: [PATCH 2/9] Upgrade GitHub actions --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5467742..b318f07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache PHP dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: '**/vendor' key: ${{ runner.os }}-vendor-cache-${{ hashFiles('**/composer.lock') }} @@ -29,7 +29,7 @@ jobs: ${{ runner.os }}-vendor-cache- - name: Cache Composer dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.composer/cache/files key: composer-${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('composer.json') }} From e9d89c0a6a19203d90bf4a3ebdebd485807838a0 Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Mon, 6 Feb 2023 04:03:52 +0100 Subject: [PATCH 3/9] Tweak code formatting --- .php-cs-fixer.dist.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 8db5cb0..70d0ba3 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -214,6 +214,11 @@ 'ordered_imports' => [ 'sort_algorithm' => 'alpha', ], + 'global_namespace_import' => [ + 'import_classes' => true, + 'import_constants' => true, + 'import_functions' => true, + ], 'no_unneeded_control_parentheses' => [ 'statements' => ['break', 'clone', 'continue', 'echo_print', 'return', 'switch_case', 'yield'], ], From 00e2d11bfd8b7f0d00bc382ccc6524862d9d6080 Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Sun, 25 Feb 2024 01:25:06 +0100 Subject: [PATCH 4/9] Upgrade --- .github/workflows/test.yml | 6 ++-- CHANGELOG.md | 11 ++++++ README.md | 2 +- composer.json | 52 ++++++++++++++++++--------- phpunit.xml.dist | 35 ++++++------------ pint.json | 12 +++++++ rector.php | 62 ++++++++++++++++++++++++++++++++ tests/BooleanAttributeTest.php | 65 +++++++++------------------------- 8 files changed, 152 insertions(+), 93 deletions(-) create mode 100644 pint.json create mode 100644 rector.php diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b318f07..635a896 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,9 @@ jobs: strategy: fail-fast: false matrix: - php: [8.1, 8.2] - dependency-version: [prefer-lowest, prefer-stable] - os: [ubuntu-latest] + php: [ 8.2, 8.3 ] + dependency-version: [ prefer-lowest, prefer-stable ] + os: [ ubuntu-latest ] steps: - name: Check out code diff --git a/CHANGELOG.md b/CHANGELOG.md index a71643e..2bf6038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All Notable changes to `sebastiaanluca/laravel-boolean-dates` will be documented Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## 8.0.0 (2024-02-25) + +### Added + +- Added support for PHP 8.3 +- Added support for Laravel 11 + +### Removed + +- Dropped support for PHP 8.1 + ## 7.0.1 (2023-02-06) ## 7.0.0 (2023-02-06) diff --git a/README.md b/README.md index aab089f..a91a443 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ composer require sebastiaanluca/laravel-boolean-dates **Set up your Eloquent model** by: -1. Adding your datetime columns to `$casts` +1. Adding your datetime columns to the `$casts` property or `casts()` method 2. Adding the boolean attributes to `$appends` 3. Creating attribute accessors and mutators for each field diff --git a/composer.json b/composer.json index ce99043..3852d54 100644 --- a/composer.json +++ b/composer.json @@ -25,13 +25,16 @@ } ], "require": { - "php": "~8.1|~8.2", - "illuminate/database": "^10.0", - "illuminate/support": "^10.0" + "php": "~8.2|~8.3", + "illuminate/database": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.14", - "phpunit/phpunit": "^9.6" + "friendsofphp/php-cs-fixer": "^3.50", + "laravel/pint": "^1.14", + "phpunit/phpunit": "^11.0.3", + "rector/rector": "^1.0.1", + "roave/security-advisories": "dev-latest" }, "autoload": { "psr-4": { @@ -44,27 +47,42 @@ } }, "config": { + "optimize-autoloader": true, + "preferred-install": "dist", "sort-packages": true }, "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "composer:validate": "@composer validate --strict --ansi", - "test": "vendor/bin/phpunit", - "lint": "PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --dry-run --diff --ansi", - "fix": "PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --ansi", - "check": [ - "@composer:validate", - "@lint", - "@test" + "post-update-cmd": [ + "@fix" + ], + + "validate:composer": "@composer validate --strict --ansi", + "pint:check": "@php vendor/bin/pint --test --ansi", + "pint": "@php vendor/bin/pint --ansi", + "rector:check": "@php vendor/bin/rector --dry-run --ansi", + "rector": "@php vendor/bin/rector --ansi", + "phpunit": "@php vendor/bin/phpunit --order-by=random", + + "test": [ + "@validate:composer", + "@pint:check", + "@rector:check", + "@phpunit" + ], + "fix": [ + "@pint", + "@rector" ], - "check:lowest": [ + + "test:lowest": [ "composer update --prefer-lowest --prefer-dist --no-interaction --ansi", - "@check" + "@test" ], - "check:stable": [ + "test:stable": [ "composer update --prefer-stable --prefer-dist --no-interaction --ansi", - "@check" + "@test" ] } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a753534..ecffa3d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,26 +1,13 @@ - - - - src/ - - - - - tests - - + + + + tests + + + + + src/ + + diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..48f419f --- /dev/null +++ b/pint.json @@ -0,0 +1,12 @@ +{ + "preset": "laravel", + "rules": { + "phpdoc_single_line_var_spacing": true, + "phpdoc_align": false, + "class_attributes_separation": { + "elements": { + "method": "one" + } + } + } +} diff --git a/rector.php b/rector.php new file mode 100644 index 0000000..7058dea --- /dev/null +++ b/rector.php @@ -0,0 +1,62 @@ +withParallel() + ->withPaths([ + __DIR__.'/src', + __DIR__.'/tests', + ]) + ->withImportNames( + importDocBlockNames: false, + removeUnusedImports: true, + ) + ->withPhpSets() + ->withPreparedSets( + deadCode: true, + codingStyle: true, + typeDeclarations: true, + privatization: true, + earlyReturn: true, + strictBooleans: true, + ) + ->withSets([ + PHPUnitSetList::PHPUNIT_80, + PHPUnitSetList::PHPUNIT_90, + PHPUnitSetList::PHPUNIT_100, + // PHPUnitSetList::PHPUNIT_110, + ]) + ->withRules([ + BoolvalToTypeCastRector::class, + FloatvalToTypeCastRector::class, + IntvalToTypeCastRector::class, + StrvalToTypeCastRector::class, + ReadOnlyClassRector::class, + ReadOnlyPropertyRector::class, + ]) + ->withSkip([ + ArraySpreadInsteadOfArrayMergeRector::class, + CatchExceptionNameMatchingTypeRector::class, + ChangeAndIfToEarlyReturnRector::class, + ChangeOrIfContinueToMultiContinueRector::class, + ClosureToArrowFunctionRector::class, + FirstClassCallableRector::class, + NewlineAfterStatementRector::class, + ]); diff --git a/tests/BooleanAttributeTest.php b/tests/BooleanAttributeTest.php index 75c253f..7cd9380 100644 --- a/tests/BooleanAttributeTest.php +++ b/tests/BooleanAttributeTest.php @@ -6,12 +6,11 @@ use Carbon\CarbonImmutable; use Illuminate\Support\Carbon; +use PHPUnit\Framework\Attributes\Test; class BooleanAttributeTest extends TestCase { - /** - * @test - */ + #[Test] public function it can handle initial values(): void { $model = new TestModel([ @@ -26,9 +25,7 @@ public function it can handle initial values(): void $this->assertTrue($model->is_subscribed_to_newsletter); } - /** - * @test - */ + #[Test] public function it can handle empty initial values(): void { $model = new TestModel; @@ -37,9 +34,7 @@ public function it can handle empty initial values(): void $this->assertFalse($model->has_accepted_terms); } - /** - * @test - */ + #[Test] public function it can enable a boolean attribute(): void { $model = new TestModel; @@ -55,9 +50,7 @@ public function it can enable a boolean attribute(): void $this->assertTrue($model->has_accepted_terms); } - /** - * @test - */ + #[Test] public function it can disable a boolean attribute(): void { $model = new TestModel; @@ -73,9 +66,7 @@ public function it can disable a boolean attribute(): void $this->assertFalse($model->has_accepted_terms); } - /** - * @test - */ + #[Test] public function it cannot enable a boolean attribute twice and change its date(): void { Carbon::setTestNow('2022-03-13 14:31:00'); @@ -95,9 +86,7 @@ public function it cannot enable a boolean attribute twice and change i $this->assertTrue($model->has_accepted_terms); } - /** - * @test - */ + #[Test] public function it can enable a boolean attribute twice if it was disabled(): void { Carbon::setTestNow('2022-03-13 14:00:00'); @@ -124,9 +113,7 @@ public function it can enable a boolean attribute twice if it was disa $this->assertTrue($model->is_subscribed_to_newsletter); } - /** - * @test - */ + #[Test] public function it can enable a boolean attribute from a boolean(): void { $model = new TestModel; @@ -141,9 +128,7 @@ public function it can enable a boolean attribute from a boolean(): void ); } - /** - * @test - */ + #[Test] public function it can enable a boolean attribute from a string(): void { $model = new TestModel; @@ -156,9 +141,7 @@ public function it can enable a boolean attribute from a string(): void ); } - /** - * @test - */ + #[Test] public function it can enable a boolean attribute from an integer string(): void { $model = new TestModel; @@ -171,9 +154,7 @@ public function it can enable a boolean attribute from an integer strin ); } - /** - * @test - */ + #[Test] public function it can enable a boolean attribute from an integer(): void { $model = new TestModel; @@ -186,9 +167,7 @@ public function it can enable a boolean attribute from an integer(): voi ); } - /** - * @test - */ + #[Test] public function it can disable a boolean attribute from a boolean(): void { $model = new TestModel; @@ -198,9 +177,7 @@ public function it can disable a boolean attribute from a boolean(): voi $this->assertNull($model->accepted_processing_at); } - /** - * @test - */ + #[Test] public function it can disable a boolean attribute from null(): void { $model = new TestModel; @@ -210,9 +187,7 @@ public function it can disable a boolean attribute from null(): void $this->assertNull($model->agreed_to_something_at); } - /** - * @test - */ + #[Test] public function it can disable a boolean attribute from an integer string(): void { $model = new TestModel; @@ -222,9 +197,7 @@ public function it can disable a boolean attribute from an integer stri $this->assertNull($model->accepted_terms_at); } - /** - * @test - */ + #[Test] public function it can disable a boolean attribute from an integer(): void { $model = new TestModel; @@ -234,9 +207,7 @@ public function it can disable a boolean attribute from an integer(): vo $this->assertNull($model->accepted_terms_at); } - /** - * @test - */ + #[Test] public function it can disable a boolean attribute from an empty string(): void { $model = new TestModel; @@ -246,9 +217,7 @@ public function it can disable a boolean attribute from an empty string $this->assertNull($model->accepted_terms_at); } - /** - * @test - */ + #[Test] public function it returns all attributes(): void { Carbon::setTestNow('2018-01-01 10:42:06'); From 3e33dfc522e73207e3dd42bafe9cefd555eeadbf Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Sun, 25 Feb 2024 01:25:41 +0100 Subject: [PATCH 5/9] WIP --- rector.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rector.php b/rector.php index 7058dea..e35be45 100644 --- a/rector.php +++ b/rector.php @@ -21,8 +21,8 @@ return RectorConfig::configure() ->withParallel() ->withPaths([ - __DIR__.'/src', - __DIR__.'/tests', + __DIR__ . '/src', + __DIR__ . '/tests', ]) ->withImportNames( importDocBlockNames: false, @@ -41,7 +41,6 @@ PHPUnitSetList::PHPUNIT_80, PHPUnitSetList::PHPUNIT_90, PHPUnitSetList::PHPUNIT_100, - // PHPUnitSetList::PHPUNIT_110, ]) ->withRules([ BoolvalToTypeCastRector::class, From 6b5c87438e08246235055559066edd3062e39aff Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Sun, 25 Feb 2024 01:30:27 +0100 Subject: [PATCH 6/9] WIP --- .github/workflows/test.yml | 2 +- rector.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 635a896..43b0b80 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader - name: Lint code - run: PHP_CS_FIXER_IGNORE_ENV=true vendor/bin/php-cs-fixer fix --dry-run --diff + run: vendor/bin/pint --test - name: Run tests run: vendor/bin/phpunit diff --git a/rector.php b/rector.php index e35be45..4dd0077 100644 --- a/rector.php +++ b/rector.php @@ -21,8 +21,8 @@ return RectorConfig::configure() ->withParallel() ->withPaths([ - __DIR__ . '/src', - __DIR__ . '/tests', + __DIR__.'/src', + __DIR__.'/tests', ]) ->withImportNames( importDocBlockNames: false, From 04164afd00ef2ac7c750773eb82574d0e6eef86b Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Sun, 25 Feb 2024 01:35:01 +0100 Subject: [PATCH 7/9] WIP --- .github/workflows/test.yml | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 43b0b80..38e279e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,38 +1,24 @@ -name: Check code +name: Run tests on: push: pull_request: jobs: - - check: - name: Run checks - PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} + test: + name: Run tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: - fail-fast: false + fail-fast: true matrix: - php: [ 8.2, 8.3 ] - dependency-version: [ prefer-lowest, prefer-stable ] os: [ ubuntu-latest ] + php: [ 8.2, 8.3 ] + laravel: [ 10.*, 11.* ] + stability: [ prefer-lowest, prefer-stable ] steps: - - name: Check out code - uses: actions/checkout@v3 - - - name: Cache PHP dependencies - uses: actions/cache@v3 - with: - path: '**/vendor' - key: ${{ runner.os }}-vendor-cache-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-vendor-cache- - - - name: Cache Composer dependencies - uses: actions/cache@v3 - with: - path: ~/.composer/cache/files - key: composer-${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('composer.json') }} + - name: Checkout code + uses: actions/checkout@v4 - name: Validate Composer configuration file run: composer validate --strict @@ -45,7 +31,9 @@ jobs: coverage: none - name: Install dependencies - run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress --optimize-autoloader + run: | + composer require "illuminate/database:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update + composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Lint code run: vendor/bin/pint --test From b56edc0d00ec492e97ae063ab877532c61a9a97f Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Fri, 7 Feb 2025 17:27:06 +0100 Subject: [PATCH 8/9] Update requirements --- .github/workflows/test.yml | 4 ++-- CHANGELOG.md | 16 ++++++++++++++++ composer.json | 15 ++++++++------- rector.php | 13 +------------ tests/TestCase.php | 4 +--- 5 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 38e279e..2f936b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,8 +12,8 @@ jobs: fail-fast: true matrix: os: [ ubuntu-latest ] - php: [ 8.2, 8.3 ] - laravel: [ 10.*, 11.* ] + php: [ 8.3, 8.4 ] + laravel: [ 11.*, 12.* ] stability: [ prefer-lowest, prefer-stable ] steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bf6038..b7239c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,22 @@ All Notable changes to `sebastiaanluca/laravel-boolean-dates` will be documented Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## 9.0.0 (2025-02-07) + +### Added + +- Added support for PHP 8.4 +- Added support for Laravel 12 + +### Changed + +- Require minimum version of Laravel 11.32 to fix deprecation warnings. See https://github.com/laravel/framework/pull/50922. + +### Removed + +- Dropped support for PHP 8.2 +- Dropped support for Laravel 10 + ## 8.0.0 (2024-02-25) ### Added diff --git a/composer.json b/composer.json index 3852d54..0b644b6 100644 --- a/composer.json +++ b/composer.json @@ -25,15 +25,16 @@ } ], "require": { - "php": "~8.2|~8.3", - "illuminate/database": "^10.0|^11.0", - "illuminate/support": "^10.0|^11.0" + "php": "^8.3.0", + "illuminate/database": "^11.32|^12.0", + "illuminate/support": "^11.32|^12.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.50", - "laravel/pint": "^1.14", - "phpunit/phpunit": "^11.0.3", - "rector/rector": "^1.0.1", + "friendsofphp/php-cs-fixer": "^3.68.5", + "laravel/pint": "^1.20", + "laravel/serializable-closure": "^2.0", + "phpunit/phpunit": "^11.5.7", + "rector/rector": "^1.2.10", "roave/security-advisories": "dev-latest" }, "autoload": { diff --git a/rector.php b/rector.php index 4dd0077..ea8409d 100644 --- a/rector.php +++ b/rector.php @@ -2,15 +2,9 @@ declare(strict_types=1); -use Rector\CodeQuality\Rector\FuncCall\BoolvalToTypeCastRector; -use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector; -use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector; -use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector; use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector; -use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector; use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; use Rector\Config\RectorConfig; -use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector; use Rector\EarlyReturn\Rector\If_\ChangeOrIfContinueToMultiContinueRector; use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\Php81\Rector\Array_\FirstClassCallableRector; @@ -41,19 +35,14 @@ PHPUnitSetList::PHPUNIT_80, PHPUnitSetList::PHPUNIT_90, PHPUnitSetList::PHPUNIT_100, + PHPUnitSetList::PHPUNIT_110, ]) ->withRules([ - BoolvalToTypeCastRector::class, - FloatvalToTypeCastRector::class, - IntvalToTypeCastRector::class, - StrvalToTypeCastRector::class, ReadOnlyClassRector::class, ReadOnlyPropertyRector::class, ]) ->withSkip([ - ArraySpreadInsteadOfArrayMergeRector::class, CatchExceptionNameMatchingTypeRector::class, - ChangeAndIfToEarlyReturnRector::class, ChangeOrIfContinueToMultiContinueRector::class, ClosureToArrowFunctionRector::class, FirstClassCallableRector::class, diff --git a/tests/TestCase.php b/tests/TestCase.php index 34e1718..a24e3e2 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -6,6 +6,4 @@ use PHPUnit\Framework\TestCase as BaseTestCase; -class TestCase extends BaseTestCase -{ -} +class TestCase extends BaseTestCase {} From 4e318eee9c9eef0ec86ce47ecc7f74c2e1f95ff1 Mon Sep 17 00:00:00 2001 From: Sebastiaan Luca Date: Fri, 7 Feb 2025 17:44:00 +0100 Subject: [PATCH 9/9] Format + script --- CHANGELOG.md | 20 ++++++++++---------- composer.json | 4 +++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7239c4..ef47133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip ### Changed -- Require minimum version of Laravel 11.32 to fix deprecation warnings. See https://github.com/laravel/framework/pull/50922. +- Require minimum version of Laravel 11.32 to fix deprecation warnings. See https://github.com/laravel/framework/pull/50922. ### Removed @@ -135,19 +135,19 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip - Run tests against Laravel 5.7 -## 1.0.4 (2018-08-26) +## 1.0.4 (2018-08-26) ### Changed - Updated readme (yes, again 🤓) -## 1.0.3 (2018-08-26) +## 1.0.3 (2018-08-26) ### Changed - Updated readme -## 1.0.2 (2018-08-26) +## 1.0.2 (2018-08-26) ### Added @@ -157,13 +157,13 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip - Changed Composer description -## 1.0.1 (2018-08-20) +## 1.0.1 (2018-08-20) ### Fixed - Require nesbot/carbon v1.22.1 to fix "Cannot access property xxxx::$lastErrors" (see https://github.com/briannesbitt/Carbon/issues/852) -## 1.0.0 (2018-08-19) +## 1.0.0 (2018-08-19) ### Fixed @@ -171,13 +171,13 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip - Always return a valid array when retrieving all boolean dates - Fixed issue where converting a model to an array didn't include the correct boolean field values -## 0.2.1 (2018-07-26) +## 0.2.1 (2018-07-26) ### Fixed - Remove `self` return type hint (conflicted when returning `null` during an Artisan command) -## 0.2.0 (2018-07-26) +## 0.2.0 (2018-07-26) ### Changed @@ -187,13 +187,13 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip - Allow multiple traits with the same methods (e.g. `getAttribute`) -## 0.1.1 (2018-07-26) +## 0.1.1 (2018-07-26) ### Fixed - Fixed service provider auto-discovery -## 0.1.0 (2018-07-26) +## 0.1.0 (2018-07-26) ### Added diff --git a/composer.json b/composer.json index 0b644b6..5913bd4 100644 --- a/composer.json +++ b/composer.json @@ -84,6 +84,8 @@ "test:stable": [ "composer update --prefer-stable --prefer-dist --no-interaction --ansi", "@test" - ] + ], + + "release": "git-release" } }