bump versions and set php83 as new target
This commit is contained in:
parent
f30fbd3758
commit
8c90c27762
6 changed files with 34 additions and 29 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;
|
||||
use PhpCsFixer\Fixer\LanguageConstruct\FunctionToConstantFixer;
|
||||
use PhpCsFixer\Fixer\Operator\NewWithBracesFixer;
|
||||
use PhpCsFixer\Fixer\Operator\NewWithParenthesesFixer;
|
||||
use PhpCsFixer\Fixer\Operator\OperatorLinebreakFixer;
|
||||
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
|
||||
use PhpCsFixer\Fixer\Whitespace\NoExtraBlankLinesFixer;
|
||||
|
@ -22,21 +24,21 @@ use Symplify\EasyCodingStandard\Config\ECSConfig;
|
|||
|
||||
return ECSConfig::configure()
|
||||
->withPreparedSets(
|
||||
symplify: true,
|
||||
arrays: true,
|
||||
cleanCode: true,
|
||||
comments: true,
|
||||
controlStructures: true,
|
||||
docblocks: true,
|
||||
namespaces: true,
|
||||
spaces: true,
|
||||
namespaces: true,
|
||||
controlStructures: true,
|
||||
strict: true,
|
||||
symplify: true
|
||||
cleanCode: true
|
||||
)
|
||||
->withPhpCsFixerSets(
|
||||
perCS: true,
|
||||
perCSRisky: true,
|
||||
php83Migration: true,
|
||||
php80MigrationRisky: true,
|
||||
php83Migration: true,
|
||||
)
|
||||
->withRules([
|
||||
AlphabeticallySortedUsesSniff::class,
|
||||
|
@ -108,4 +110,6 @@ return ECSConfig::configure()
|
|||
BlankLineAfterOpeningTagFixer::class,
|
||||
OrderedImportsFixer::class,
|
||||
FunctionToConstantFixer::class,
|
||||
NewWithParenthesesFixer::class,
|
||||
NewWithBracesFixer::class,
|
||||
]);
|
||||
|
|
|
@ -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,
|
||||
]);
|
||||
};
|
||||
])
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue