Skip to content
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

Drop php-cs-fixer and setup phpcs #423

Merged
merged 43 commits into from
Feb 5, 2024

Conversation

connorhu
Copy link
Contributor

No description provided.

@connorhu connorhu force-pushed the feature/csfixer-3x branch 3 times, most recently from 545caf6 to d4d2c45 Compare January 26, 2024 16:22
composer.json Outdated Show resolved Hide resolved
@connorhu
Copy link
Contributor Author

Now it is OK. Is it necessary to reference php-cs-fixer in require-dev? There is workflow job, there is config, if someone needs php-cs-fixer then install it globally.

@greg0ire
Copy link
Collaborator

greg0ire commented Jan 27, 2024

Would it make sense to switch to doctrine/coding-standard + https://github.com/doctrine/.github/blob/main/workflow-templates/coding-standards.yml instead of working on this?

Now it is OK. Is it necessary to reference php-cs-fixer in require-dev?

Is it causing any issue? Because it sure is more convenient for contributors to use what's provided by the project, especially if they have to ues a specific version to satisfy the build.

@connorhu
Copy link
Contributor Author

Let's see what it causes!

@connorhu connorhu force-pushed the feature/csfixer-3x branch 2 times, most recently from fb20c45 to 64349bf Compare January 27, 2024 15:17
.github/workflows/coding-standards.yml Outdated Show resolved Hide resolved
.github/workflows/coding-standards.yml Outdated Show resolved Hide resolved
.github/workflows/coding-standards.yml Outdated Show resolved Hide resolved
@connorhu
Copy link
Contributor Author

Ok i got it how it works. Failing, no surprise.

@greg0ire
Copy link
Collaborator

Applying some of these rules will be a breaking change, and you should probably ignore them, like we did in doctrine/orm v2. To get their names, you can run phpcs with the -s flag

@connorhu
Copy link
Contributor Author

Most of the errors are phpdoc related errors (missing type hint). Nothing deadly serious. If you like it, I can fix the errors and we can make this PR a code sniffer migration.

@greg0ire
Copy link
Collaborator

greg0ire commented Jan 27, 2024

Ah yes, fixing the errors with phpdoc is indeed a backwards-compatible solution, please do work on fixing the errors 👍

@connorhu connorhu force-pushed the feature/csfixer-3x branch 12 times, most recently from cb0da36 to 33f0195 Compare January 28, 2024 01:30
…lareStrictTypes.DeclareStrictTypesMissing"

This reverts commit 0308030.
@derrabus derrabus merged commit 2e08fb5 into beberlei:master Feb 5, 2024
8 checks passed
@connorhu
Copy link
Contributor Author

connorhu commented Feb 5, 2024

Thank you for merging it! Also, congratulations on the release of the ORM and DBAL!
I will continue with the ORM3 support PR cleanup.

@connorhu connorhu deleted the feature/csfixer-3x branch February 5, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants