contributte / psr7-http-message

:dizzy: PSR #7 [HTTP Message Interface] to Nette Framework (@nette)
https://contributte.org/packages/contributte/psr7-http-message.html
MIT License
21 stars 5 forks source link

Remove self type hints from traits to fix compability with PHP <7.4 #33

Closed Roman3349 closed 2 years ago

Roman3349 commented 2 years ago

Without this fix the following error was thrown Declaration of Contributte\Psr7\Extra\ExtraRequestTrait::withNewUri(string $uri): Contributte\Psr7\Extra\ExtraRequestTrait must be compatible with Contributte\Psr7\ProxyRequest::withNewUri(string $uri): Contributte\Psr7\ProxyRequest on PHP 7.4.

f3l1x commented 2 years ago

Thank you.

f3l1x commented 2 years ago

@Roman3349 It looks like it's broken now. Can you take a look?

Roman3349 commented 2 years ago

@f3l1x Fixed in #34.