-
Notifications
You must be signed in to change notification settings - Fork 356
Update dev tools #785
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
Update dev tools #785
Conversation
f6f2388
to
6eb3168
Compare
6eb3168
to
959d487
Compare
@jack-worman I really like the effort. But I'm struggling a bit with the PR. My first gut reaction is that the PR seems rather large (in number of files/lines) but with only a single commit. Beside the code changes it is turning things quite a bit upside down with the tools sub-project. Changes related to But I'm also trying to understand it from your perspective. Could you perhaps elaborate on the problems you ran into that resulted in this PR? Perhaps we can find an alternative solution to this? |
I can split it into 3 commits if you wish:
I don't believe it too be uncommon for a project to set up their dev tools in this fashion. For instance, PHPStan does something similar: https://github.com/phpstan/phpstan-src/blob/2.1.x/build-cs/composer.json I would be happy to add some instructions to CONTRIBUTING.md to help alleviate any confusion for future contributors.
In previous PR's,
parameters:
phpVersion:
min: 70200
max: 80499 This allows for more accurate analysis for the project. And in general, it is much more enjoyable to work in a project that allows using modern tooling. |
We should still support PHP 7.2 because it may be hard for people to update their projects to support newer PHP versions. But the individual should have no problem installing a supported versions of PHP. |
I've been giving this some thoughts over the past couple of days. Although I'm still somewhat conflicted on my decision I'm making it anyway. The end state you're trying to get to seems great from a technical perspective, and I understand your perspective. But it is adding additional cognitive load for the other developers as it deviates from the (expected) standard. In addition to the cognitive load the changes adds to the workload of the maintainers, which is me and some efforts from @erayd at this moment in time. So at this point in time the PR will not be accepted. Several months ago this project was more dead than alive and we are still trying to restore from that, picking up reported issues, reviewing PR's and updating to support modern versions of PHP and JSON Schema Drafts. My preference is to put efforts into those things. I do believe your contributions in terms of improving the codebase based on static analysis findings is very helpful to the project. I'm hoping you're still motivated to keep doing that even though this PR won't be accepted. Flexing the version constraints of the |
Moved dev tools to their own composer.json, so that we can get the newest versions while still supporting PHP 7.2 for the main composer.json.
Styling changes are due to updated php-cs-fixer, no rules were changed.