Closed Wulfheart closed 4 years ago
Did you follow the installation guide? Line by line?
Yes. But I had to edit the version of the collision package.
You have "phpunit/phpunit": "9.0"
in your composer json. It means you only allow 9.0 but pest requires 9.1. So I believe if you change it to "phpunit/phpunit": "^9.0"
it should work correctly. Unless there is a reason why you are exactly on 9.0
No. I just followed the instructions 🤷🏼♂️
Yeah - instructions tell you to change it to "phpunit/phpunit": "^9.0"
and not "phpunit/phpunit": "9.0"
. 👍
Thanks. Now it is working.
However the version of the collision package is unable to get with copy and paste via composer.
Just a notice here, I also followed the instructions (copy & paste) and ended with composer.json line:
"phpunit/phpunit": "9.0"
Maybe it's a composer issue? (tried with composer 1.10.1 and 1.10.7)
Also failed to install nunomaduro/collision ^5.0, i had to issue:
composer require nunomaduro/collision:"^5.0.0-BETA2" --dev --update-with-dependencies
@underdpt, do you happen to be on Windows?
Yes
Yeah, I've had that issue before. ^
is the escape character on Windows command line (at least in Command Prompt), so it ends up just being "9.0"
as it escapes the 9
.
I'm not really sure what the best way of solving this is. On Windows, it has to be "^^9.0"
to escape the escape character.
Since the caret is a shorthand in composer, maybe we should provide the full syntax it refers to?
composer require phpunit/phpunit:">=9.0.0 <10.0.0" --dev --update-with-dependencies
I'm getting the following error when following the installation instructions:
Furthermore I'm quite nervous that
composer require nunomaduro/collision:"^5.0" --dev --update-with-dependencies
isn't available neither.