Skip to content

Commit fba50c7

Browse files
Add support for PHP 8.4 and Laravel 12 (#4)
1 parent c9e845a commit fba50c7

File tree

5 files changed

+40
-34
lines changed

5 files changed

+40
-34
lines changed

Diff for: .github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
fail-fast: true
1313
matrix:
1414
os: [ ubuntu-latest ]
15-
php: [ 8.2, 8.3 ]
16-
laravel: [ 10.*, 11.* ]
15+
php: [ 8.3, 8.4 ]
16+
laravel: [ 11.*, 12.* ]
1717
stability: [ prefer-lowest, prefer-stable ]
1818

1919
steps:

Diff for: CHANGELOG.md

+25-9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ All Notable changes to `sebastiaanluca/laravel-boolean-dates` will be documented
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

7+
## 9.0.0 (2025-02-07)
8+
9+
### Added
10+
11+
- Added support for PHP 8.4
12+
- Added support for Laravel 12
13+
14+
### Changed
15+
16+
- Require minimum version of Laravel 11.32 to fix deprecation warnings. See https://github.com/laravel/framework/pull/50922.
17+
18+
### Removed
19+
20+
- Dropped support for PHP 8.2
21+
- Dropped support for Laravel 10
22+
723
## 8.0.0 (2024-02-25)
824

925
### Added
@@ -119,19 +135,19 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
119135

120136
- Run tests against Laravel 5.7
121137

122-
## 1.0.4 (2018-08-26)
138+
## 1.0.4 (2018-08-26)
123139

124140
### Changed
125141

126142
- Updated readme (yes, again 🤓)
127143

128-
## 1.0.3 (2018-08-26)
144+
## 1.0.3 (2018-08-26)
129145

130146
### Changed
131147

132148
- Updated readme
133149

134-
## 1.0.2 (2018-08-26)
150+
## 1.0.2 (2018-08-26)
135151

136152
### Added
137153

@@ -141,27 +157,27 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
141157

142158
- Changed Composer description
143159

144-
## 1.0.1 (2018-08-20)
160+
## 1.0.1 (2018-08-20)
145161

146162
### Fixed
147163

148164
- Require nesbot/carbon v1.22.1 to fix "Cannot access property xxxx::$lastErrors" (see https://github.com/briannesbitt/Carbon/issues/852)
149165

150-
## 1.0.0 (2018-08-19)
166+
## 1.0.0 (2018-08-19)
151167

152168
### Fixed
153169

154170
- Removed `$booleanDates` trait variable to resolve conflict with the model it's used in
155171
- Always return a valid array when retrieving all boolean dates
156172
- Fixed issue where converting a model to an array didn't include the correct boolean field values
157173

158-
## 0.2.1 (2018-07-26)
174+
## 0.2.1 (2018-07-26)
159175

160176
### Fixed
161177

162178
- Remove `self` return type hint (conflicted when returning `null` during an Artisan command)
163179

164-
## 0.2.0 (2018-07-26)
180+
## 0.2.0 (2018-07-26)
165181

166182
### Changed
167183

@@ -171,13 +187,13 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
171187

172188
- Allow multiple traits with the same methods (e.g. `getAttribute`)
173189

174-
## 0.1.1 (2018-07-26)
190+
## 0.1.1 (2018-07-26)
175191

176192
### Fixed
177193

178194
- Fixed service provider auto-discovery
179195

180-
## 0.1.0 (2018-07-26)
196+
## 0.1.0 (2018-07-26)
181197

182198
### Added
183199

Diff for: composer.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@
2525
}
2626
],
2727
"require": {
28-
"php": "~8.2|~8.3",
29-
"illuminate/database": "^10.0|^11.0",
30-
"illuminate/support": "^10.0|^11.0"
28+
"php": "^8.3.0",
29+
"illuminate/database": "^11.32|^12.0",
30+
"illuminate/support": "^11.32|^12.0"
3131
},
3232
"require-dev": {
33-
"friendsofphp/php-cs-fixer": "^3.50",
34-
"laravel/pint": "^1.14",
35-
"phpunit/phpunit": "^11.0.3",
36-
"rector/rector": "^1.0.1",
33+
"friendsofphp/php-cs-fixer": "^3.68.5",
34+
"laravel/pint": "^1.20",
35+
"laravel/serializable-closure": "^2.0",
36+
"phpunit/phpunit": "^11.5.7",
37+
"rector/rector": "^1.2.10",
3738
"roave/security-advisories": "dev-latest"
3839
},
3940
"autoload": {
@@ -83,6 +84,8 @@
8384
"test:stable": [
8485
"composer update --prefer-stable --prefer-dist --no-interaction --ansi",
8586
"@test"
86-
]
87+
],
88+
89+
"release": "git-release"
8790
}
8891
}

Diff for: rector.php

+1-12
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22

33
declare(strict_types=1);
44

5-
use Rector\CodeQuality\Rector\FuncCall\BoolvalToTypeCastRector;
6-
use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector;
7-
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector;
8-
use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector;
95
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
10-
use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector;
116
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
127
use Rector\Config\RectorConfig;
13-
use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector;
148
use Rector\EarlyReturn\Rector\If_\ChangeOrIfContinueToMultiContinueRector;
159
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
1610
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
@@ -41,19 +35,14 @@
4135
PHPUnitSetList::PHPUNIT_80,
4236
PHPUnitSetList::PHPUNIT_90,
4337
PHPUnitSetList::PHPUNIT_100,
38+
PHPUnitSetList::PHPUNIT_110,
4439
])
4540
->withRules([
46-
BoolvalToTypeCastRector::class,
47-
FloatvalToTypeCastRector::class,
48-
IntvalToTypeCastRector::class,
49-
StrvalToTypeCastRector::class,
5041
ReadOnlyClassRector::class,
5142
ReadOnlyPropertyRector::class,
5243
])
5344
->withSkip([
54-
ArraySpreadInsteadOfArrayMergeRector::class,
5545
CatchExceptionNameMatchingTypeRector::class,
56-
ChangeAndIfToEarlyReturnRector::class,
5746
ChangeOrIfContinueToMultiContinueRector::class,
5847
ClosureToArrowFunctionRector::class,
5948
FirstClassCallableRector::class,

Diff for: tests/TestCase.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66

77
use PHPUnit\Framework\TestCase as BaseTestCase;
88

9-
class TestCase extends BaseTestCase
10-
{
11-
}
9+
class TestCase extends BaseTestCase {}

0 commit comments

Comments
 (0)