Skip to content

build(deps): Bump guzzlehttp/psr7 from 2.13.1 to 3.1.0 - #3353

Merged
nickvergessen merged 2 commits into
masterfrom
dependabot/composer/guzzlehttp/psr7-3.1.0
Sep 30, 2026
Merged

nickvergessen merged 2 commits into
masterfrom
dependabot/composer/guzzlehttp/psr7-3.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Bumps guzzlehttp/psr7 from 2.13.1 to 3.1.0.

Release notes

Sourced from guzzlehttp/psr7's releases.

3.1.0

Added

  • Add Utils::redactUriForMessage() and Utils::redactUriStringForMessage() for URI diagnostics
  • Add support for PHP 8.6

Changed

  • Omit rejected header values and sensitive URI components from automatic exception messages

3.0.1

Fixed

  • Prefix relative paths that begin with a colon segment with ./ instead of throwing
  • Apply the /. prefix for authority-less // paths to percent-encoding normalizations as well
  • Keep colon-leading first path segments when reading the paths of scheme-less non-native URIs
  • Stop throwing when removing the default file host strands a // path, prefixing it with /.

3.0.0

Added

  • Add DiagnosticValue::escape() to escape controls and malformed UTF-8 in diagnostics
  • Add GuzzleHttp\Psr7\Exception\TimeoutException for timed-out stream operations
  • Add GuzzleHttp\Psr7\Utils::redactUserInfoInString() to redact the userinfo of a raw URI string within text
  • Promote GuzzleHttp\Psr7\Rfc3986 to public API with isValid*() predicates and canonicalizeIpv6()
  • Add GuzzleHttp\Psr7\UriNormalizer::CANONICALIZE_IPV6_HOST to PRESERVING_NORMALIZATIONS

Changed

  • Require psr/http-message:^2.0 and add native parameter and return types
  • Require psr/http-factory:^1.1
  • Reject native PHP serialization of stream implementations
  • Preserve request method casing, except ServerRequest::fromGlobals() still uppercases
  • Reject empty arrays and non-string values as header values
  • Reject invalid uploaded file trees and invalid parsed body values
  • Reject uploaded file specs missing tmp_name, size, or error
  • Reject non-integer and negative uploaded file error values
  • Reject invalid stream/upload sizes, buffer high-water marks, and dropping-stream limits
  • Rewind seekable uploaded-file streams before copying in UploadedFile::moveTo()
  • Reject negative read() lengths across all stream implementations
  • Detect the + flag anywhere in a mode for Stream::isReadable()/isWritable()
  • Reject empty strings returned by PumpStream source callables
  • Discard buffered bytes on PumpStream close and detach
  • Restore the original stream position after Message::bodySummary()
  • Allow null for the Message::bodySummary() truncation length to use the default
  • Validate LimitStream offset/limit and track non-seekable offset by bytes skipped
  • Make FnStream close and detach terminal, calling close callbacks at most once
  • Suppress exceptions from FnStream close callbacks during destructor cleanup
  • Make CachingStream::close() idempotent, preserving remote cleanup after detach
  • Do not move the CachingStream cursor when a SEEK_END target on an unknown-size stream is rejected

... (truncated)

Changelog

Sourced from guzzlehttp/psr7's changelog.

3.1.0 - 2026-08-24

Added

  • Add Utils::redactUriForMessage() and Utils::redactUriStringForMessage() for URI diagnostics
  • Add support for PHP 8.6

Changed

  • Omit rejected header values and sensitive URI components from automatic exception messages

3.0.1 - 2026-08-24

Fixed

  • Prefix relative paths that begin with a colon segment with ./ instead of throwing
  • Apply the /. prefix for authority-less // paths to percent-encoding normalizations as well
  • Keep colon-leading first path segments when reading the paths of scheme-less non-native URIs
  • Stop throwing when removing the default file host strands a // path, prefixing it with /.

3.0.0 - 2026-07-20

Added

  • Add DiagnosticValue::escape() to escape controls and malformed UTF-8 in diagnostics
  • Add GuzzleHttp\Psr7\Exception\TimeoutException for timed-out stream operations
  • Add GuzzleHttp\Psr7\Utils::redactUserInfoInString() to redact the userinfo of a raw URI string within text
  • Promote GuzzleHttp\Psr7\Rfc3986 to public API with isValid*() predicates and canonicalizeIpv6()
  • Add GuzzleHttp\Psr7\UriNormalizer::CANONICALIZE_IPV6_HOST to PRESERVING_NORMALIZATIONS

Changed

  • Require psr/http-message:^2.0 and add native parameter and return types
  • Require psr/http-factory:^1.1
  • Reject native PHP serialization of stream implementations
  • Preserve request method casing, except ServerRequest::fromGlobals() still uppercases
  • Reject empty arrays and non-string values as header values
  • Reject invalid uploaded file trees and invalid parsed body values
  • Reject uploaded file specs missing tmp_name, size, or error
  • Reject non-integer and negative uploaded file error values
  • Reject invalid stream/upload sizes, buffer high-water marks, and dropping-stream limits
  • Rewind seekable uploaded-file streams before copying in UploadedFile::moveTo()
  • Reject negative read() lengths across all stream implementations
  • Detect the + flag anywhere in a mode for Stream::isReadable()/isWritable()
  • Reject empty strings returned by PumpStream source callables
  • Discard buffered bytes on PumpStream close and detach
  • Restore the original stream position after Message::bodySummary()
  • Allow null for the Message::bodySummary() truncation length to use the default
  • Validate LimitStream offset/limit and track non-seekable offset by bytes skipped
  • Make FnStream close and detach terminal, calling close callbacks at most once

... (truncated)

Commits
  • a3059ba Release 3.1.0
  • cf5d5de Merge remote-tracking branch 'origin/3.0' into 3.1
  • a7c1d4a Release 3.0.1
  • 3698982 Add PHP 8.6 to the CI matrix and version guidance (#882)
  • 4229885 Merge branch '3.0' into 3.1
  • 086457f Prefix stranded file host paths with /. instead of throwing (#881)
  • e7203cc Merge branch '3.0' into 3.1
  • 130e5c4 Keep a colon-leading first path segment when reading scheme-less non-native U...
  • 75010c3 Prefix relative paths that begin with a colon segment instead of throwing (#879)
  • 98db496 Harden automatic exception diagnostics (#875)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added 3. to review dependencies Pull requests that update a dependency file labels Sep 5, 2026
@dependabot
dependabot Bot requested a review from nickvergessen as a code owner September 5, 2026 01:03
@dependabot dependabot Bot added 3. to review dependencies Pull requests that update a dependency file labels Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 9160 was 9041 (+1.31%)
Please check your code again. If you added a new test this can be expected and the base value in tests/Integration/base-query-count.txt can be increased.

@dependabot
dependabot Bot force-pushed the dependabot/composer/guzzlehttp/psr7-3.1.0 branch from 001e75e to 88c3f4a Compare September 5, 2026 06:18
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 9158 was 9041 (+1.29%)
Please check your code again. If you added a new test this can be expected and the base value in tests/Integration/base-query-count.txt can be increased.

@nickvergessen

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 2.13.1 to 3.1.0.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/3.1/CHANGELOG.md)
- [Commits](guzzle/psr7@2.13.1...3.1.0)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/composer/guzzlehttp/psr7-3.1.0 branch from 88c3f4a to f22bcdb Compare September 17, 2026 08:18
@nickvergessen

Copy link
Copy Markdown
Member

Cause: psr7 2.x depended on ralouphie/getallheaders, and that was the only package whose code Mozart copied into classmap_directory (lib/autoload/). psr7 3.x dropped
that dependency, so a fresh composer install no longer creates lib/autoload/. Your checkout only still had it because an old copy was left over from before the bump.
Two tools then fail on the missing path:

  • psalm: Could not resolve config path to …/lib/autoload
  • rector: The path "…/lib/autoload" does not exist.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
nickvergessen merged commit be7c67b into master Sep 30, 2026
40 of 41 checks passed
@nickvergessen
nickvergessen deleted the dependabot/composer/guzzlehttp/psr7-3.1.0 branch September 30, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant