Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Update composer.json for guzzlehttp/psr7 2.1 #928

Closed
wants to merge 1 commit into from

Conversation

rtaylor82
Copy link

Latest Laravel uses guzzle 7.4.1 which requires "guzzlehttp/psr7": "^1.8.3 || ^2.1", and installs 2.1;

Installation has errors cause of versions. Downgrading breaks requirements for many other packages like aws/aws-sdk-php, intervention/image, etc...

Problem 1
- beyondcode/laravel-websockets[1.12.0, ..., 1.x-dev] require guzzlehttp/psr7 ^1.5 -> found guzzlehttp/psr7[1.5.0, ..., 1.x-dev] but the package is fixed to 2.1.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 beyondcode/laravel-websockets ^1.12 -> satisfiable by beyondcode/laravel-websockets[1.12.0, 1.x-dev].

Latest Laravel uses guzzle 7.4.1 which requires "guzzlehttp/psr7": "^1.8.3 || ^2.1", and installs 2.1;

Installation has errors cause of versions.  Downgrading breaks requirements for many other packages like aws/aws-sdk-php, intervention/image, etc...


Problem 1
    - beyondcode/laravel-websockets[1.12.0, ..., 1.x-dev] require guzzlehttp/psr7 ^1.5 -> found guzzlehttp/psr7[1.5.0, ..., 1.x-dev] but the package is fixed to 2.1.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 beyondcode/laravel-websockets ^1.12 -> satisfiable by beyondcode/laravel-websockets[1.12.0, 1.x-dev].
@rtaylor82 rtaylor82 changed the title Update composer.json Update composer.json for guzzlehttp/psr7 2.1 Jan 14, 2022
@PaolaRuby
Copy link

I don't understand, ^2.0 includes 2.1

"guzzlehttp/psr7": "^1.7|^2.0",

Looks like you are using old outdated 1.x version,

"guzzlehttp/psr7": "^1.5",

so you have to point this PR to 1.x not to master, and it is not only about adding the new version, but also about adapting to the breaking changes #908, #830

@erikn69
Copy link
Contributor

erikn69 commented Jan 14, 2022

Update your implementation
composer require "beyondcode/laravel-websockets:dev-master" -W

@rtaylor82
Copy link
Author

The 1.5 version was an old edit of me trying to make it install. Sorry I left that artifact in the composer.json;

I've resolved my issue with a fork, thank you both for commenting, I'll close this.

@rtaylor82 rtaylor82 closed this Jan 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants