Skip to content

Conversation

@HPWebdeveloper
Copy link

@HPWebdeveloper HPWebdeveloper commented Dec 11, 2025

the current "psr/http-message": "~1.0" constraint conflicts with Guzzle 7 implementations and forces downgrades in dependent projects.

The Change:

Updated psr/http-message constraint:

Before: "psr/http-message": "~1.0"

After: "psr/http-message": "^1.0 || ^2.0"

Why This Fix:

  1. Root Cause: The old constraint ~1.0 means >=1.0 <2.0, which blocks PSR-7 version 2.0

  2. The Conflict:

Guzzle 7 (required by cloudflare/sdk) uses "guzzlehttp/psr7": "^2.8",

reference: https://github.com/guzzle/guzzle/blob/7.10/composer.json

guzzlehttp/psr7 v2.x requires "psr/http-message": "^1.1 || ^2.0",

reference: https://github.com/guzzle/psr7/blob/2.8/composer.json

But cloudflare/sdk was blocking version 2.0

The change allows both:

PSR-7 v1.x (for backward compatibility)

PSR-7 v2.x (for modern implementations)

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

Successfully merging this pull request may close these issues.

1 participant