Skip to content

Commit

Permalink
Bump deps (#5)
Browse files Browse the repository at this point in the history
* bump deps

* bump deps
  • Loading branch information
TomasVotruba committed Feb 7, 2024
1 parent 472a324 commit ebc9ec2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 45 deletions.
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@
"require": {
"php": ">=8.1",
"clue/ndjson-react": "^1.3",
"fidry/cpu-core-counter": "^0.4.0 || ^0.5.1",
"fidry/cpu-core-counter": "^0.5.1|^1.1",
"nette/utils": "^3.2|^4.0",
"react/child-process": "^0.6.5",
"react/event-loop": "^1.3",
"react/socket": "^1.12",
"react/event-loop": "^1.5",
"react/socket": "^1.15",
"symfony/console": "^6.2|^7.0"
},
"require-dev": {
"phpstan/extension-installer": "^1.3",
"phpunit/phpunit": "^10.5",
"rector/rector": "^0.18.13",
"symplify/easy-coding-standard": "^12.0",
"symplify/phpstan-extensions": "^11.4",
"rector/rector": "^1.0",
"symplify/easy-coding-standard": "^12.1",
"tomasvotruba/class-leak": "^0.2.6"
},
"autoload": {
Expand All @@ -33,7 +31,7 @@
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"phpstan": "vendor/bin/phpstan analyse --ansi",
"rector": "vendor/bin/rector process --dry-run --ansi"
},
"config": {
Expand Down
17 changes: 5 additions & 12 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@
declare(strict_types=1);

use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([
return ECSConfig::configure()
->withPaths([
__DIR__ . '/config',
__DIR__ . '/ecs.php',
__DIR__ . '/rector.php',
__DIR__ . '/src',
__DIR__ . '/tests',
]);

$ecsConfig->sets([
SetList::COMMON,
SetList::PSR_12,
]);
};
])
->withRootFiles()
->withPreparedSets(common: true, psr12: true);
32 changes: 7 additions & 25 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,16 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
// @todo bump to PHP 8.1
LevelSetList::UP_TO_PHP_80,
SetList::CODING_STYLE,
SetList::TYPE_DECLARATION,
SetList::NAMING,
SetList::PRIVATIZATION,
SetList::EARLY_RETURN,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
]);

$rectorConfig->paths([
return RectorConfig::configure()
->withPreparedSets(codeQuality: true, deadCode: true, codingStyle: true, naming: true, privatization: true, earlyReturn: true)
->withPaths([
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
]);

$rectorConfig->importNames();

$rectorConfig->skip([
])
->withImportNames(removeUnusedImports: true)
->withPhpSets()
->withSkip([
'*/Source/*',
'*/Fixture/*',
]);
};

0 comments on commit ebc9ec2

Please sign in to comment.