Skip to content

Add upgrade howto#58

Merged
OndraM merged 1 commit into
alma-oss:mainfrom
OndraM:feature/upgrade-howto
Feb 9, 2021
Merged

Add upgrade howto#58
OndraM merged 1 commit into
alma-oss:mainfrom
OndraM:feature/upgrade-howto

Conversation

@OndraM
Copy link
Copy Markdown
Contributor

@OndraM OndraM commented Feb 8, 2021

This is step-by-step how to upgrade codestyle config to PHP format. Ref. #56 #51 .

Real-word example of such upgrade done by this guide: https://github.com/lmc-eu/steward/pull/270/files

Comment thread UPGRADE-3.0.md

```diff
- "lmc/coding-standard": "^2.1",
+ "lmc/coding-standard": "^3.0",
Copy link
Copy Markdown
Contributor Author

@OndraM OndraM Feb 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to use it already until the 3.0 version is actually released, one must obviously use branch constrain (dev-feature/ecs-9 etc.)

@OndraM OndraM force-pushed the feature/upgrade-howto branch 2 times, most recently from b104641 to 4589f53 Compare February 8, 2021 12:57
@OndraM OndraM force-pushed the feature/upgrade-howto branch from 4589f53 to 997cdf8 Compare February 9, 2021 10:46
@OndraM OndraM merged commit 3be0b18 into alma-oss:main Feb 9, 2021
Comment thread UPGRADE-3.0.md
Because of the nature of how ECS process the configuration (which is, in fact, the behavior of underlying
symfony/dependency-injection), you must follow the order in which you add your customizations.

In your `ecs.php` add import of the lmc/coding-standard **after** you add `skip` parameter but **before** your custom code-style ajdustements:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in ajdustements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants