Skip to content

Commit 10fdd34

Browse files
authored
Upgrade to ECS with Laravel container (#28)
1 parent 7e50b0b commit 10fdd34

File tree

4 files changed

+10
-45
lines changed

4 files changed

+10
-45
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
-
4848
name: 'Check Active Classes'
49-
run: vendor/bin/easy-ci check-active-class src --ansi
49+
run: vendor/bin/class-leak check src --ansi
5050

5151
name: ${{ matrix.actions.name }}
5252
runs-on: ubuntu-latest

composer.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
"symplify/rule-doc-generator-contracts": "^11.1"
1010
},
1111
"require-dev": {
12-
"symplify/easy-coding-standard": "^11.4",
13-
"squizlabs/php_codesniffer": "^3.7.1",
12+
"symplify/easy-coding-standard": "dev-main",
13+
"squizlabs/php_codesniffer": "^3.7.2",
1414
"phpunit/phpunit": "^10.2",
1515
"symplify/rule-doc-generator": "^11.1",
16-
"cweagans/composer-patches": "^1.7",
1716
"php-parallel-lint/php-parallel-lint": "^1.3",
1817
"phpstan/extension-installer": "^1.3",
19-
"phpstan/phpstan": "^1.10.19",
20-
"rector/rector": "^0.17.1",
21-
"symplify/easy-ci": "^11.2",
18+
"phpstan/phpstan": "^1.10.26",
19+
"rector/rector": "^0.17.7",
20+
"symplify/easy-ci": "^11.3",
2221
"symplify/phpstan-extensions": "^11.2",
23-
"tomasvotruba/unused-public": "^0.1.12",
24-
"tomasvotruba/type-coverage": "^0.2.0"
22+
"tomasvotruba/unused-public": "^0.1.14",
23+
"tomasvotruba/type-coverage": "^0.2",
24+
"tomasvotruba/class-leak": "0.0.22.72"
2525
},
2626
"autoload": {
2727
"psr-4": {
@@ -33,17 +33,8 @@
3333
"Symplify\\CodingStandard\\Tests\\": "tests"
3434
}
3535
},
36-
"extra": {
37-
"enable-patching": true,
38-
"patches": {
39-
"symfony/dependency-injection": [
40-
"https://raw.githubusercontent.com/symplify/vendor-patch-files/main/patches/generic-php-config-loader.patch"
41-
]
42-
}
43-
},
4436
"config": {
4537
"allow-plugins": {
46-
"cweagans/composer-patches": true,
4738
"phpstan/extension-installer": true
4839
}
4940
},
@@ -52,7 +43,6 @@
5243
"fix-cs": "vendor/bin/ecs check --fix --ansi",
5344
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
5445
"rector": "vendor/bin/rector process --dry-run --ansi",
55-
"release": "vendor/bin/monorepo-builder release patch --ansi",
5646
"docs": "vendor/bin/rule-doc-generator generate src --output-file docs/rules_overview.md --ansi"
5747
}
5848
}

config/config.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

config/symplify.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
declare(strict_types=1);
4+
45
use PhpCsFixer\Fixer\Phpdoc\GeneralPhpdocAnnotationRemoveFixer;
56
use Symplify\CodingStandard\Fixer\Annotation\RemovePHPStormAnnotationFixer;
67
use Symplify\CodingStandard\Fixer\ArrayNotation\ArrayListItemNewlineFixer;
@@ -15,10 +16,6 @@
1516
use Symplify\EasyCodingStandard\Config\ECSConfig;
1617

1718
return static function (ECSConfig $ecsConfig): void {
18-
$ecsConfig->import(__DIR__ . '/config.php');
19-
20-
// epxpclit like other configs :) no magic!!!
21-
2219
$ecsConfig->rules([
2320
// docblocks and comments
2421
RemovePHPStormAnnotationFixer::class,

0 commit comments

Comments
 (0)