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..ef47133 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 @@ -119,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 @@ -141,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 @@ -155,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 @@ -171,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 3852d54..5913bd4 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": { @@ -83,6 +84,8 @@ "test:stable": [ "composer update --prefer-stable --prefer-dist --no-interaction --ansi", "@test" - ] + ], + + "release": "git-release" } } 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 {}