Closed SeinopSys closed 7 years ago
Remove composer.lock
and vendor
directory and try again.
Or run
$ composer remove phpunit/phpunit && require --dev phpunit/phpunit:^6.4 --update-with-dependencies
This should help as well without the need to remove composer.lock
(as a subsequent composer install
might pull in undesired updates).
Removing composer.lock
did it, thank you @kubawerlos!
I have this same error. but I can't delete the composer.lock file as the same repository I'm deploying on heroku and build starts failing on heroku without composer.lock file
@vsasvipul0605 It's been a while since I had this issue, but I think the idea is to delete the lock file and re-run composer install
or composer update
to get a fresh lock file without the issue
but I told that I can't delete composer.lock file. composer.lock is must needed for heroku deployment
@vsasvipul0605 yes you can :)
I'm deploying on heroku and build starts failing on heroku without composer.lock file
So you can't have composer.lock
deleted from your repository.
But you can delete the file, then run composer update
and commit the modified composer.lock
.
I exactly did the same but travis build error occurring again. Any other alternative solution?
Have you tried Composer's flags --update-with-dependencies
and --update-with-all-dependencies
?
Where to write these composer flags?
In composer require
command.
i dont have composer require in my repo. can u explain in detail. repo details: https://github.com/vsasvipul0605/covid19-india-stats/tree/heroku
Composer the tool itself has this command, see this comment: https://github.com/sebastianbergmann/phpunit/issues/2823#issuecomment-338506914
and use it with packages that make the trouble.
still the same error. i tried this too.
I'm trying to add PHPUnit as a dev dependency to a project of mine, which seems to fail on PHP 7.0 and prevents tests from succeeding. Travis CI gives me the following during the build process:
The issue can only be with PHPUnit as it's the only dependency in the repository, and it does not happen when using PHP 7.1