Commit 105329e 1 parent 06f2318 commit 105329e Copy full SHA for 105329e
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,16 @@ or more configuration options in [ECS documentation](https://github.com/easy-cod
40
40
41
41
Some more reasoning and examples of configurations can also be seen [ in ECS author blogpost] ( https://tomasvotruba.com/blog/new-in-ecs-simpler-config ) .
42
42
43
- ### 3. Remove imports of ` ecs-7.4.php ` and/ or ` ecs-8.0 .php ` from your ` ecs.php `
43
+ ### 3. Remove imports of ` ecs-7.4.php ` , ` ecs-8.0.php ` or ` ecs-8.1 .php ` from your ` ecs.php `
44
44
``` diff
45
45
->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs.php')
46
46
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-7.4.php')
47
47
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.0.php')
48
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.1.php')
48
+ - ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.1.php')
49
49
```
50
50
51
+ All the rules are now included in the main ` ecs.php ` file. Only rules compatible with your PHP version are applied.
52
+
51
53
### 4. Configure paths directly in ecs.php
52
54
53
55
Paths definition could now be included directly in ` ecs.php ` instead of repeating them on command line.
You can’t perform that action at this time.
0 commit comments