Skip to content

fix wrong type send to withHeader PSR response method#79

Open
Triplkrypl wants to merge 1 commit into
ratchetphp:masterfrom
Triplkrypl:master
Open

fix wrong type send to withHeader PSR response method#79
Triplkrypl wants to merge 1 commit into
ratchetphp:masterfrom
Triplkrypl:master

Conversation

@Triplkrypl

Copy link
Copy Markdown

Type int from getVersionNumber is not compatible with PSR interface method parameter with type string|array<string>.

Guzzle PSR-7 implementation start triggering deprecated error: https://github.com/guzzle/psr7/blob/640e2897bbee822dbc8af761d49e1a29b1f2a6b1/src/MessageTrait.php#L93.

I highly recommend you start using https://phpstan.org/ or https://psalm.dev/ dev tool to automatically detect errors like this.

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