Skip to content

Commit 105329e

Browse files
committed
Docs: Update upgrade guide to reflect changes in sub-imports
1 parent 06f2318 commit 105329e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

UPGRADE-4.0.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ or more configuration options in [ECS documentation](https://github.com/easy-cod
4040

4141
Some more reasoning and examples of configurations can also be seen [in ECS author blogpost](https://tomasvotruba.com/blog/new-in-ecs-simpler-config).
4242

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`
4444
```diff
4545
->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs.php')
4646
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-7.4.php')
4747
- ->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')
4949
```
5050

51+
All the rules are now included in the main `ecs.php` file. Only rules compatible with your PHP version are applied.
52+
5153
### 4. Configure paths directly in ecs.php
5254

5355
Paths definition could now be included directly in `ecs.php` instead of repeating them on command line.

0 commit comments

Comments
 (0)