bruli / php-git-hooks

Git hooks for PHP projects
MIT License
675 stars 107 forks source link

PHP Unit 7.0 support #107

Closed aftabnaveed closed 6 years ago

aftabnaveed commented 6 years ago

Looks like PHP Unit 7.0 support is not added yet. I am trying to use it for my laravel 5.6 project which uses php unit 7.0 I get this error

Using version ^5.3 for bruli/php-git-hooks ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for bruli/php-git-hooks ^5.3 -> satisfiable by bruli/php-git-hooks[v5.3].
    - Conclusion: remove phpunit/phpunit 7.0.3
    - Conclusion: don't install phpunit/phpunit 7.0.3
    - bruli/php-git-hooks v5.3 requires phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.x-dev, 6.1.x-dev, 6.2.x-dev, 6.3.x-dev, 6.4.x-dev, 6.5.x-dev].
    - Can only install one of: phpunit/phpunit[6.0.x-dev, 7.0.3].
    - Can only install one of: phpunit/phpunit[6.1.x-dev, 7.0.3].
    - Can only install one of: phpunit/phpunit[6.2.x-dev, 7.0.3].
    - Can only install one of: phpunit/phpunit[6.3.x-dev, 7.0.3].
    - Can only install one of: phpunit/phpunit[6.4.x-dev, 7.0.3].
    - Can only install one of: phpunit/phpunit[6.5.x-dev, 7.0.3].
    - Installation request for phpunit/phpunit (locked at 7.0.3, required as ~7.0) -> satisfiable by phpunit/phpunit[7.0.3]. 

Can this support be added easily?

bruli commented 6 years ago

Yes, is not added yet. Could you send a PR?.

bruli commented 6 years ago

Sorry, I see your PR.