Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 54dab87

Browse files
committed
Update changelog, typos
1 parent 3be0b18 commit 54dab87

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<!-- There is always Unreleased section on the top. Subsections (Added, Changed, Fixed, Removed) should be added as needed. -->
66

77
## Unreleased
8+
- **[BC break]** Change YAML config to PHP. See [UPGRADE-3.0.md](UPGRADE-3.0.md) for step-by-step upgrade howto.
89
- Replace `Symplify\CodingStandard\Sniffs\Naming\[AbstractClassNameSniff, ClassNameSuffixByParentSniff, InterfaceNameSniff and TraitNameSniff]` with equivalent versions backported to this repository.
910
- Drop PHP 7.2 support.
10-
- **[BC break]** Change YAML config to PHP.
1111
- Upgrade to easy-coding-standard 9.
1212

1313
## 2.1.0 - 2020-11-25

UPGRADE-3.0.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ composer remove symplify/config-transformer --dev # the migration tool can now b
3535
Because of the nature of how ECS process the configuration (which is, in fact, the behavior of underlying
3636
symfony/dependency-injection), you must follow the order in which you add your customizations.
3737

38-
In your `ecs.php` add import of the lmc/coding-standard **after** you add `skip` parameter but **before** your custom code-style ajdustements:
38+
In your `ecs.php` add import of the lmc/coding-standard **after** you add `skip` parameter but **before** your custom
39+
code-style adjustments:
3940

4041
```diff
4142
// ...
@@ -46,7 +47,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
4647
$parameters = $containerConfigurator->parameters();
4748
$parameters->set(Option::SKIP, [__DIR__ . '/foo/bar']);
4849

49-
+ $containerConfigurator->import(__DIR__. '/vendor/lmc/coding-standard/ecs.php');
50+
+ $containerConfigurator->import(__DIR__ . '/vendor/lmc/coding-standard/ecs.php');
5051

5152
// Your code style customizations and overrides of the default code-style must be placed AFTER the import
5253
$services->set(PhpUnitExpectationFixer::class)
@@ -66,16 +67,17 @@ return static function (ContainerConfigurator $containerConfigurator): void {
6667
$parameters = $containerConfigurator->parameters();
6768

6869
- $parameters->set('skip', [ForbiddenFunctionsSniff::class => ['src-tests/bootstrap.php']]);
69-
- $parameters->set('exclude_files', ['src/foo/bar.php']);
70-
+ $parameters->set(Option::SKIP, [
71-
+ ForbiddenFunctionsSniff::class => ['src-tests/bootstrap.php'],
72-
+ 'src/foo/bar.php',
70+
- $parameters->set('exclude_files', [__DIR__ . '/src/foo/bar.php']);
71+
+ $parameters->set(
72+
+ Option::SKIP,
73+
+ [
74+
+ ForbiddenFunctionsSniff::class => [__DIR__ . '/src-tests/bootstrap.php'],
75+
+ __DIR__ . '/src/foo/bar.php',
7376
+ ]
7477
+ );
7578

7679
$containerConfigurator->import(__DIR__ . '/vendor/lmc/coding-standard/ecs.php');
7780
};
78-
7981
```
8082

8183
See [ECS documentation](https://github.com/symplify/easy-coding-standard/tree/master#configuration) for more configuration options.

0 commit comments

Comments
 (0)