Skip to content

Add upgrade howto #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2021
Merged

Add upgrade howto #58

merged 1 commit into from
Feb 9, 2021

Conversation

OndraM
Copy link
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


```diff
- "lmc/coding-standard": "^2.1",
+ "lmc/coding-standard": "^3.0",
Copy link
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
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

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