Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to ECS 9 with PHP config #56

Merged
merged 3 commits into from Feb 9, 2021
Merged

Upgrade to ECS 9 with PHP config #56

merged 3 commits into from Feb 9, 2021

Conversation

OndraM
Copy link
Member

@OndraM OndraM commented Feb 4, 2021

A bit reworked #54 (thx @PilarJ for the initial implementation!). Fixes #50 and #51.

The main issue is with readability. I personally don't like the PHP config that much (there is so much noise with repeated $services->set() etc.), the YAML provided IMHO nice abstraction and much cleaner notation 馃檮 . However this is how things are and we have to live with it 馃し.

I at least tried encapsulate "rules configuration" and "parameters configuration" into anonymous functions, so that there is at least some structure in the config, what do you think?

BTW for codestyle of the respective projects this is not such issue, because the configuration will usually be just an import of this codestyle and few lines of customizations. Step-by-step upgrade guide for the projects is here.

@OndraM
Copy link
Member Author

OndraM commented Feb 4, 2021

This one is currently blocker: deprecated-packages/symplify#2906

@OndraM
Copy link
Member Author

OndraM commented Feb 8, 2021

Also to clarify: no new rules were added, it is still configured exactly the same as previously.

(There is a separate issue for adding new check from those newly added to php-cs-fixer etc.: #52 )

@OndraM OndraM merged commit f7ab928 into main Feb 9, 2021
@OndraM OndraM deleted the feature/ecs-9 branch May 13, 2021 11:03
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.

Change YAML config to PHP Upgrade to easy-coding-standard 9
3 participants