bump versions and set php83 as new target

This commit is contained in:
lubiana 2024-02-03 01:07:15 +01:00
parent f30fbd3758
commit 8c90c27762
6 changed files with 34 additions and 29 deletions

View file

@ -43,9 +43,9 @@ use Rector\TypeDeclaration\Rector\FunctionLike\AddParamTypeSplFixedArrayRector;
use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
return static function (RectorConfig $c): void {
$c->sets([LevelSetList::UP_TO_PHP_82]);
$c->rules([
return RectorConfig::configure()
->withSets([LevelSetList::UP_TO_PHP_83])
->withRules([
AddArrowFunctionReturnTypeRector::class,
AddMethodCallBasedStrictParamTypeRector::class,
AddParamTypeFromPropertyTypeRector::class,
@ -86,5 +86,5 @@ return static function (RectorConfig $c): void {
ThrowWithPreviousExceptionRector::class,
TypedPropertyFromStrictConstructorRector::class,
RemoveAlwaysElseRector::class,
]);
};
])
;