Skip to content

Conversation

@keradus
Copy link
Member

@keradus keradus commented Jan 3, 2026

Q A
Bug fix? no
New feature? no
Deprecations? no
Documentation? no
Issues Fix CS
License MIT

best to review commit by commit

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Jan 3, 2026
@carsonbot carsonbot changed the title PHP CS Fixer: update usage PHP CS Fixer: update usage Jan 3, 2026
Copy link
Member

@Kocal Kocal left a 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
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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.

Copy link
Member Author

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

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Jan 3, 2026
@Kocal
Copy link
Member

Kocal commented Jan 3, 2026

Can we also remove the PHP-CS-Fixer configuration file from ux.symfony.com?

Kocal added a commit to Kocal/symfony-ux that referenced this pull request Jan 3, 2026
@keradus
Copy link
Member Author

keradus commented Jan 3, 2026

removed as requested

@Kocal
Copy link
Member

Kocal commented Jan 3, 2026

Thanks @keradus, that's super appreciated!

@Kocal Kocal merged commit 6583743 into symfony:2.x Jan 3, 2026
23 of 29 checks passed
Kocal added a commit to Kocal/symfony-ux that referenced this pull request Jan 3, 2026
Kocal added a commit that referenced this pull request Jan 3, 2026
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
@keradus keradus deleted the fixer branch January 3, 2026 22:44
Kocal added a commit that referenced this pull request Jan 3, 2026
* 2.x:
  Run Twig-CS-Fixer on all repo's files, follow #3263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Reviewed Has been reviewed by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants