Skip to content

Commit 8257cb3

Browse files
committed
update ecs config
1 parent 033b81c commit 8257cb3

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
"license": "MIT",
66
"require": {
77
"php": ">=8.2",
8-
"phpstan/phpstan": "^2.0"
8+
"phpstan/phpstan": "^2.1"
99
},
1010
"require-dev": {
1111
"illuminate/container": "^11.0",
1212
"phpstan/extension-installer": "^1.4",
13-
"phpunit/phpunit": "^11.4",
13+
"phpunit/phpunit": "^11.5",
1414
"rector/rector": "^2.0",
1515
"symfony/dependency-injection": "^6.4",
16-
"symfony/finder": "^6.2",
17-
"symplify/easy-coding-standard": "^12.0",
16+
"symfony/finder": "^6.4",
17+
"symplify/easy-coding-standard": "^12.5",
1818
"symplify/phpstan-rules": "^14.1",
19-
"tracy/tracy": "^2.9"
19+
"tracy/tracy": "^2.10"
2020
},
2121
"autoload": {
2222
"psr-4": {

ecs.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33
declare(strict_types=1);
44

55
use Symplify\EasyCodingStandard\Config\ECSConfig;
6-
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
76

8-
return static function (ECSConfig $ecsConfig): void {
9-
$ecsConfig->paths([
10-
__DIR__ . '/ecs.php',
11-
__DIR__ . '/rector.php',
7+
return ECSConfig::configure()
8+
->withPaths([
129
__DIR__ . '/src',
1310
__DIR__ . '/tests',
14-
]);
15-
16-
$ecsConfig->sets([
17-
SetList::COMMON,
18-
SetList::PSR_12,
19-
]);
20-
};
11+
])
12+
->withRootFiles()
13+
->withPreparedSets(common: true, psr12: true);

0 commit comments

Comments
 (0)