Skip to content

Conversation

@nicwortel
Copy link
Contributor

@nicwortel nicwortel commented May 15, 2018

PSR-12 states that the order should be: classes, functions, constants. PhpStorm (as of version 2018.1) also uses this order when you reformat your code, so it is annoying when our coding standard enforces something different.

PSR-12 states that the order should be: classes, functions, constants
@nicwortel
Copy link
Contributor Author

Should this be released as a new major version, since this is backward incompatible with the previous order (classes, constants, functions)? Or are we fine with fixing this in the existing codebases?

Copy link
Contributor

@VSlokker VSlokker left a comment

Choose a reason for hiding this comment

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

I'm fine with fixing it.

@nicwortel nicwortel merged commit 8d6d39b into master May 16, 2018
@nicwortel nicwortel deleted the enforce-psr12-imports branch May 16, 2018 07:17
@nicwortel
Copy link
Contributor Author

Undo when slevomat/coding-standard#346 is fixed.

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.

4 participants