Skip to content

Add support for PHP 8.4 and Laravel 12 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
34 changes: 25 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -141,27 +157,27 @@ 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

- Removed `$booleanDates` trait variable to resolve conflict with the model it's used in
- 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

Expand All @@ -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

Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -83,6 +84,8 @@
"test:stable": [
"composer update --prefer-stable --prefer-dist --no-interaction --ansi",
"@test"
]
],

"release": "git-release"
}
}
13 changes: 1 addition & 12 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use PHPUnit\Framework\TestCase as BaseTestCase;

class TestCase extends BaseTestCase
{
}
class TestCase extends BaseTestCase {}