Open kacperjurak opened 4 years ago
Hi, Same here but no answer since 1 year, seems no fix for SF 5 support ?
It's been a while since Symfony 5 got out there, and now we're in Symfony 5.2, with 5.3 about to be released.
I understand the project might be out of interest for the maintainer, but if you read this, I might be able to help with a PR that deals with this compatibility upgrade for Symfony 5.X. I would only need a confirmation that you will review the PR and if it tests pass and you think is valuable, then publish a new release.
Thanks in advance
P.S. In case the maintainer is busy, does anyone know a replacement for this package that performs similar tasks and is compatible with Symfony 5.x ?
I've managed to find a really nice alternative to this dependency. pre-commit software is described as:
A framework for managing and maintaining multi-language pre-commit hooks
So this is a replacement not only for this project, which is PHP focused, but to many programming languages.
I've been playing with it, and the setup is very simple:
.pre-commit-config.yaml
file in the root of your projectThis is the setup I've implemented for my Symfony 5 project:
repos:
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
- id: php-lint-all
- id: php-unit
- id: php-cs
files: \.(php)$
args: [ --standard=PSR2 -p ]
You can manually run the hook with this command:
pre-commit run --all-files
Or simply wait until you make a commit, and see the automated run of the above command :)
Have fun!
Hello, Is there a chance for Symfony 5 support? Best Regards