-
-
Notifications
You must be signed in to change notification settings - Fork 402
PHP CS Fixer: update usage #3263
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
Conversation
Kocal
left a comment
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.
Thanks you for working on this!
| public array $products = []; | ||
| } | ||
|
|
||
| // @php-cs-fixer-ignore fully_qualified_strict_types Due to https://github.com/symfony/ux/pull/2768#issuecomment-2905091761 |
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.
Can we move this line at the very top?
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.
i recommend it on bottom, to avoid any placement conflict with license header, declare strict etc - but you can put it anywhere in the file
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.
I understand, but I think it would be clearer for a human to have this comment at the beginning of the file, especially since it is quite long here.
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.
i moved it. if you prefer another place, please locate it at place of your preference
|
Can we also remove the PHP-CS-Fixer configuration file from ux.symfony.com? |
|
removed as requested |
|
Thanks @keradus, that's super appreciated! |
This PR was merged into the 2.x branch. Discussion ---------- Run Twig-CS-Fixer on all repo's files, follow #3263 | Q | A | -------------- | --- | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Documentation? | no <!-- required for new features, or documentation updates --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT I'm not sure to understand why Fabbot Twig-CS-Fixer check is failing, but too much files are being linted: ``` [OK] Files linted: 62, notices: 0, warnings: 0, errors: 0 Error: Twig-CS-Fixer found style issues. Please apply the patch below. git apply - <<'EOF_PATCH' Only in b/: a EOF_PATCH Then commit the changes and push to your PR branch. ``` I'm not able to reproduce it locally **EDIT:** I forgot to remove `b` directory 🤦🏻 Commits ------- d5ae9b7 Run Twig-CS-Fixer on all repo's files, follow #3263
* 2.x: Run Twig-CS-Fixer on all repo's files, follow #3263
best to review commit by commit