Skip to content

Commit

Permalink
Add php 8.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMuller committed Jun 21, 2024
1 parent 603efe3 commit a32d0b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prefer-stable": true,
"minimum-stability": "stable",
"require": {
"php": "^8.3",
"php": "^8.2",
"illuminate/collections": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"nesbot/carbon": "^2|^3",
Expand Down Expand Up @@ -44,7 +44,7 @@
},
"config": {
"platform": {
"php": "8.3.8"
"php": "8.2"
},
"sort-packages": true,
"allow-plugins": {
Expand Down
8 changes: 1 addition & 7 deletions rector.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<?php declare(strict_types=1);

use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\If_\NullableCompareToNullRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector;
use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector;
use Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php74\Rector\Ternary\ParenthesizeNestedTernaryRector;

Expand All @@ -22,11 +19,8 @@
->withSkip([
ClosureToArrowFunctionRector::class,
EncapsedStringsToSprintfRector::class,
ExplicitBoolCompareRector::class,
NullableCompareToNullRector::class,
RemoveNullPropertyInitializationRector::class,
RenameParamToMatchTypeRector::class,
RenameVariableToMatchNewTypeRector::class,
])
->withPaths([
__DIR__ . '/src',
Expand All @@ -40,5 +34,5 @@
)
->withDeadCodeLevel(40) // max 40
->withMemoryLimit('3G')
->withPhpSets(php83: true)
->withPhpSets(php82: true)
->withTypeCoverageLevel(37); // max 37

0 comments on commit a32d0b1

Please sign in to comment.