From a32d0b15e4bad7537f98430fc6e8423ecd1f8867 Mon Sep 17 00:00:00 2001 From: Sander Muller Date: Fri, 21 Jun 2024 10:31:42 +0200 Subject: [PATCH] Add php 8.2 support --- composer.json | 4 ++-- rector.php | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 5c3ebb0..df78485 100644 --- a/composer.json +++ b/composer.json @@ -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", @@ -44,7 +44,7 @@ }, "config": { "platform": { - "php": "8.3.8" + "php": "8.2" }, "sort-packages": true, "allow-plugins": { diff --git a/rector.php b/rector.php index baae69d..73986e7 100644 --- a/rector.php +++ b/rector.php @@ -1,13 +1,10 @@ withSkip([ ClosureToArrowFunctionRector::class, EncapsedStringsToSprintfRector::class, - ExplicitBoolCompareRector::class, NullableCompareToNullRector::class, RemoveNullPropertyInitializationRector::class, - RenameParamToMatchTypeRector::class, - RenameVariableToMatchNewTypeRector::class, ]) ->withPaths([ __DIR__ . '/src', @@ -40,5 +34,5 @@ ) ->withDeadCodeLevel(40) // max 40 ->withMemoryLimit('3G') - ->withPhpSets(php83: true) + ->withPhpSets(php82: true) ->withTypeCoverageLevel(37); // max 37