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

Dependency outdated / pinned - requires php-http/discovery below <1.15 #671

Closed
J-Brk opened this issue Mar 23, 2023 · 3 comments
Closed

Comments

@J-Brk
Copy link

J-Brk commented Mar 23, 2023

Environment

Laravel 10 - PHP 8.1.2

Steps to Reproduce

  1. Install for example: openai-php/laravel which uses php-http/[email protected].
  2. Try to install sentry sentry/sentry-laravel.

Expected Result

The installation to complete.

Actual Result

Installation error: "sentry/sentry[3.13.1, ..., 3.16.0] require php-http/discovery ^1.11, <1.15 -> found php-http/discovery[1.11.0, ..., 1.14.3] but the package is fixed to 1.15.2 (lock file version) by a partial update and that version does not match."

Solution

Please resolve the requirement for versions below < 1.15. php-http/discovery v1.15.1 was released 2023-02-10.
https://github.com/php-http/discovery/releases

@J-Brk
Copy link
Author

J-Brk commented Mar 23, 2023

Issue likely caused in #650

@cleptric
Copy link
Member

See getsentry/sentry-php#1504
We need to do some more testing, so expect a release next week.

@stayallive
Copy link
Collaborator

stayallive commented Mar 28, 2023

We released 3.17 of our base PHP SDK which fixes the issue: https://github.com/getsentry/sentry-php/releases/tag/3.17.0. Just running a composer update and then requiring openai-php/laravel should work now (the Laravel package itself doesn't have a new version because it's not needed)!

Thanks for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants