Skip to content

Commit

Permalink
update dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Feb 14, 2024
1 parent b04ad86 commit 4b87053
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 125 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8.2",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.50",
"phpstan/phpstan": "^1.10.58",
"phpstan/phpstan-deprecation-rules": "^1.1.4",
"phpstan/phpstan-strict-rules": "^1.5.2",
"rector/rector": "^0.18.13",
"rector/rector": "^1.0.0",
"roave/security-advisories": "dev-latest",
"symfony/dependency-injection": "^6.4.1"
"symfony/dependency-injection": "^6.4.3"
},
"autoload": {
"psr-4": {
Expand Down
36 changes: 21 additions & 15 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,28 @@
declare(strict_types=1);

use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector;
use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
return RectorConfig::configure()
->withPhpSets()
->withPreparedSets(
codeQuality: true,
)
->withAttributesSets(
symfony: true,
doctrine: true,
)
->withPaths([
__DIR__ . '/src',
]);

$rectorConfig->skip([
])
->withSkip([
SimplifyEmptyCheckOnEmptyArrayRector::class,
DisallowedEmptyRuleFixerRector::class,
NullToStrictStringFuncCallArgRector::class,
Expand All @@ -26,11 +33,10 @@
'src/DependencyInjection/Compiler/TransformerCompilerPass.php',
],
IssetOnPropertyObjectToPropertyExistsRector::class,
CountArrayToEmptyArrayComparisonRector::class
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81,
SetList::CODE_QUALITY,
]);
};
CountArrayToEmptyArrayComparisonRector::class,
SimplifyIfElseToTernaryRector::class => [
'src/Form/Transformer/OverwriteAbstractTransformerTrait.php',
],
MixedTypeRector::class,
])
->withRootFiles();
2 changes: 1 addition & 1 deletion vendor-bin/phpcs/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.42.0"
"friendsofphp/php-cs-fixer": "^3.49.0"
}
}
Loading

0 comments on commit 4b87053

Please sign in to comment.