Skip to content

[1.x] Add missing ?string parameter type for getMetadata() with PSR-7 v2 - #553

Merged
WyriHaximus merged 1 commit into
reactphp:1.xfrom
clue-labs:getmetadata
Nov 8, 2026
Merged

WyriHaximus merged 1 commit into
reactphp:1.xfrom
clue-labs:getmetadata

Conversation

@clue

@clue clue commented Nov 8, 2026

Copy link
Copy Markdown
Member

This changeset adds the missing ?string parameter type for getMetadata() in the internal EmptyBodyStream and HttpBodyStream classes when using PSR-7 v2. This was simply missed in #549, as the other stream classes already use the same type as the StreamInterface from psr/http-message v2.

This is not a BC break and should be safe to apply. Both classes are internal and only use this type when PSR-7 v2 is installed, so any code following the PSR-7 interface works exactly as before.

Builds on top of #549

@clue clue added this to the v1.12.1 milestone Nov 8, 2026
@clue
clue requested a review from WyriHaximus November 8, 2026 12:20
@WyriHaximus
WyriHaximus merged commit 75cabc6 into reactphp:1.x Nov 8, 2026
16 checks passed
@clue
clue deleted the getmetadata branch November 8, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants