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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PSR2 -> PSR12 for ControlStructureSpacing #416

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

fredden
Copy link
Member

@fredden fredden commented Jul 12, 2022

I have noticed that this coding standard is using PSR2.ControlStructures.ControlStructureSpacing and PSR12.ControlStructures.ControlStructureSpacing is also available. From what I can tell, the latter includes checks from the former and some additional useful checks. This pull request changes to use the new version of this sniff.

Fixes YouweGit/coding-standard-magento2#6
Related to: #128

@fredden
Copy link
Member Author

fredden commented Feb 27, 2023

@sidolov what needs to happen to get this merged in? Is there anything I can do to help with that?

ihor-sviziev
ihor-sviziev previously approved these changes Mar 19, 2023
@sinhaparul
Copy link
Contributor

@magento import PR to magento-commerce/magento-coding-standard repository

@m2-github-services
Copy link
Contributor

@sinhaparul the Pull Request is successfully imported.

@Morgy93
Copy link
Member

Morgy93 commented Dec 9, 2023

So, what is blocking this PR?

Since PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace conflicts with PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine and PSR2 has been

Deprecated - As of 2019-08-10 PSR-2 has been marked as deprecated. PSR-12 is now recommended as an alternative.
https://www.php-fig.org/psr/psr-2/

I'd love to advance it before 2024. 🤓

@ihor-sviziev
Copy link
Collaborator

@sinhaparul @sidolov, is there any reason not to merge this?

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

Successfully merging this pull request may close these issues.

Youwe/Global/Common standard conflicts with Magento Coding standards
5 participants