Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2 #1192

Open
rsecor opened this issue Dec 14, 2023 · 2 comments
Open

PHP 8.2 #1192

rsecor opened this issue Dec 14, 2023 · 2 comments
Labels
user bug The issue was an error on user side.

Comments

@rsecor
Copy link

rsecor commented Dec 14, 2023

Environment

  • PHP Version:
    • 8.2.13
    • DiscordPHP Version:
    • x.x.x

Describe the bug
Problem 1
- team-reflex/discord-php[dev-fix-voice-client-handle-ws-switch, dev-legacy-cache-wrapper, dev-master, dev-subscriptions, dev-key2peace-patch-1, dev-valzargaming-patch-1, dev-promise-v3, dev-psr16-void-cache, v10.0.0-RC5, ..., v10.0.0-RC6] require discord-php/http ^10.1.7 -> satisfiable by discord-php/http[v10.1.7, ..., v10.3.0].
- discord-php/http[v10.1.3, ..., v10.3.0] require react/http ^1.2 -> satisfiable by react/http[v1.2.0, ..., 1.x-dev].
- team-reflex/discord-php[dev-develop, v5.1.0, ..., v5.2.0-RC3, v6.0.0-RC4, ..., v6.x-dev, v7.0.0-RC1, ..., v7.x-dev] require react/http ^1.1 -> satisfiable by react/http[v1.1.0, ..., 1.x-dev].
- team-reflex/discord-php v1.0.0 requires php ^5.5.9 -> your php version (8.2.13) does not satisfy that requirement.
- team-reflex/discord-php[v2.0.0, ..., v2.1.3, v3.0.0, ..., v3.2.4] require guzzlehttp/guzzle ~5.3|~6.0 -> found guzzlehttp/guzzle[5.3.0, ..., 5.3.x-dev, 6.0.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.2).
- team-reflex/discord-php[v4.0.0, ..., v4.0.4] require php ^5.6|^7.0 -> your php version (8.2.13) does not satisfy that requirement.
- team-reflex/discord-php[v5.0.0, ..., v5.0.3] require php ^7.0 -> your php version (8.2.13) does not satisfy that requirement.
- team-reflex/discord-php[v5.0.10, ..., v5.0.12] require php ^7.2 -> your php version (8.2.13) does not satisfy that requirement.
- team-reflex/discord-php[dev-cacheInterface, dev-patch-docs, v10.0.0-RC1, ..., v10.0.0-RC4] require psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.0 (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.
- react/http[v1.2.0, ..., 1.x-dev] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (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 team-reflex/discord-php * -> satisfiable by team-reflex/discord-php[dev-fix-voice-client-handle-ws-switch, dev-legacy-cache-wrapper, dev-master, dev-subscriptions, dev-cacheInterface, dev-key2peace-patch-1, dev-valzargaming-patch-1, dev-develop, dev-patch-docs, dev-promise-v3, dev-psr16-void-cache, v1.0.0, v2.0.0, ..., v2.1.3, v3.0.0, ..., v3.2.4, v4.0.0, ..., v4.0.4, v5.0.0, ..., v5.2.0-RC3, v6.0.0-RC4, ..., v6.x-dev, v7.0.0-RC1, ..., v7.x-dev, v10.0.0-RC1, ..., v10.0.0-RC6, 9999999-dev].

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 team-reflex/discord-php:*" to figure out if any version is installable, or "composer require team-reflex/discord-php:^2.1" if you know which you need.

To Reproduce
composer require team-reflex/discord-php

Expected behavior
Library adds

@rsecor rsecor added the bug label Dec 14, 2023
@SQKo
Copy link
Member

SQKo commented Dec 15, 2023

PHP 8.2 needs to use version 10 (RC available or dev-master)

besides, you have another dependency issue that is outside of this library, which is

  • react/http[v1.2.0, ..., 1.x-dev] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (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.
    your lock file is fixed at psr/http-message 2.0 but the react/http only supports psr/http-message 1.x Try to downgrade that if your root project doesn't need it.

@SQKo SQKo added user bug The issue was an error on user side. and removed bug labels Dec 15, 2023
@2colours
Copy link

2colours commented Mar 4, 2024

Not sure about the exact point but I'm fine using v7 with latest PHP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user bug The issue was an error on user side.
Projects
None yet
Development

No branches or pull requests

3 participants