Skip to content

Commit

Permalink
Merge pull request #101 from lmc-eu/feature/docs-update
Browse files Browse the repository at this point in the history
Docs: Update upgrade guide to reflect changes in sub-imports
  • Loading branch information
OndraM authored May 13, 2024
2 parents 8e9163c + 105329e commit db877c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ or more configuration options in [ECS documentation](https://github.com/easy-cod

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

### 3. Remove imports of `ecs-7.4.php` and/or `ecs-8.0.php` from your `ecs.php`
### 3. Remove imports of `ecs-7.4.php`, `ecs-8.0.php` or `ecs-8.1.php` from your `ecs.php`
```diff
->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs.php')
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-7.4.php')
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.0.php')
->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.1.php')
- ->withSets(__DIR__ . '/vendor/lmc/coding-standard/ecs-8.1.php')
```

All the rules are now included in the main `ecs.php` file. Only rules compatible with your PHP version are applied.

### 4. Configure paths directly in ecs.php

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

0 comments on commit db877c7

Please sign in to comment.