-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
@@ -14,7 +14,7 @@ | |||
"phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0" | |||
}, | |||
"require-dev": { | |||
"friendsofphp/php-cs-fixer": "^2.16" | |||
"friendsofphp/php-cs-fixer": "^2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why it's needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of this: https://github.com/sanmai/polyfill/runs/1406796543?check_suite_focus=true
It's easier than to follow a full dev-tools
/.phar
approach, right at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue is that if you run php-cs-fixer 2.0 it may apply some other CodeStyle and expect them to be applied, while we are following ruleset of 2.16.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, but we ain't going to run php-cs-fixer on PHP 5.6, are we?
There's a dedicated CS workflow, that uses PHP 7.4 to verify the work.
Demo: https://github.com/sanmai/polyfill/actions/runs/366177606