[CI] Re-add PHP-CS-Fixer - #2803
Merged
Merged
Conversation
Kocal
force-pushed
the
ci/re-run-php-cs-fixer
branch
from
May 31, 2025 06:47
12cabbe to
e0d0f06
Compare
kbond
approved these changes
May 31, 2025
Member
Author
Member
|
Yeah no rush to remove it. |
Member
|
100% 👍 ... and i'm thinking we should either find a way to exclude false positives in fabbot... or find a way to adapt our code to get green results when it runs |
smnandre
reviewed
May 31, 2025
smnandre
reviewed
May 31, 2025
| - uses: actions/checkout@v4 | ||
| - uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: '8.1' |
Member
There was a problem hiding this comment.
we could use the php-cs-fixer tool provided by shivammathur also
Member
Author
There was a problem hiding this comment.
But we won't be able to run it locally, see #617
Member
There was a problem hiding this comment.
Yep, easier to use the installed version so you don't have to duplicate version constraints. I forgot that I don't include in my packages - the ci fixes automatically.
smnandre
reviewed
May 31, 2025
| php-version: '8.1' | ||
| - run: composer install | ||
| - name: php-cs-fixer | ||
| run: ./vendor/bin/php-cs-fixer fix --dry-run --diff |
Member
There was a problem hiding this comment.
Suggested change
| run: ./vendor/bin/php-cs-fixer fix --dry-run --diff | |
| run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --show-progress=none |
I have a doubt to be honest, it may be automatically set
smnandre
approved these changes
May 31, 2025
Kocal
force-pushed
the
ci/re-run-php-cs-fixer
branch
from
May 31, 2025 15:09
e0d0f06 to
1ab48b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow #2802, #2074, #2014 and more.
I feel like Fabbot only runs on modified files for a given PR, but sometimes it does not really help (e.g.: if you untouched files contain old references to a deleted class).
This behavior is understandable for symfony/symfony, which contains a tons of code and is super active, but that's not the case symfony/ux, we have very less code and less activity.
EDIT: Well, I'm still not sure... PHP-CS-Fixer is showing me fixes for
src/LiveComponent/src/Util/TypeHelper.php, added in #2778, but it was totally ignored by Fabbot... 😫So, I suggest to re-add PHP-CS-Fixer run in the CI to ensure all files are correctly CS-fixed.