botman: Can't install with Laravel 9
- BotMan Version: 2.6.1
- PHP Version: 8.0.8
- Messaging Service(s): Telegram, Skype
Description:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- botman/botman[2.6.0, ..., 2.6.1] require symfony/http-foundation ^2.8 || ^3.0 || ^4.0 || ^5.0 -> found symfony/http-foundation[v2.8.0-BETA1, ..., 2.8.x-dev, v3.0.0-BETA1, ..., 3.4.x-dev, v4.0.0-BETA1, ..., 4.4.x-dev, v5.0.0-BETA1, ..., 5.4.x-dev] but the package is fixed to v6.0.3 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires botman/botman ^2.6 -> satisfiable by botman/botman[2.6.0, 2.6.1].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require botman/botman:*" to figure out if any version is installable, or "composer require botman/botman:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Seems like we need symfony/http-foundation ^6.0 in composer.json.
Steps To Reproduce:
- Install Laravel 9
- composer require botman/botman
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 9
- Comments: 16
Latest version is 2.7.1: https://github.com/botman/botman/tags
@decadence Sure: https://getcomposer.org/doc/articles/aliases.md Inline alias. That’s a tricky way, but i have no errors in my project now.
You still can put this line to the
requirepart of your composer.json