Closed pauLee closed 3 years ago
Hi @pauLee I see you have the version constraint of endroid/qr-code set to ^2.0. You should use something like ^3.0 if you want to install a 3.x version (see https://getcomposer.org/doc/articles/versions.md#caret-version-range-).
Further I see you require the following dependencies in your own composer.json
"khanamiryan/qrcode-detector-decoder": "^1.0.2",
"bacon/bacon-qr-code": "^2.0",
The endroid/qr-code library also requires these dependencies and specifies the correct versions so I advise you to not overrule these from your own composer.json if not needed for some other package because this might lead to conflicts or other unexpected behavior.
Good luck!
Thank you @endroid for you help. I solved the dependencies now.
Hello,
If I try to update to the latest version 3.9.6 I can not fullfill the requirements because it tells me that I need an old version of bacon-qr-code ^1.0.3. But this package itself is outdated - the latest version would be 2.0.3.
php composer.phar update --no-dev --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
This is my composer.json file:
How can I solve that problem?