guzzle / psr7

PSR-7 HTTP message library
MIT License
7.86k stars 2 forks source link

Deprecations #475

Closed enumag closed 2 years ago

enumag commented 2 years ago

PHP version: 8.0.14

Description

I'm getting these deprecations. Which solution do you want to use?

User Deprecated: Method "Psr\Http\Message\UriInterface::getScheme()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getAuthority()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getUserInfo()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getHost()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getPort()" might add "?int" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getPath()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getQuery()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::getFragment()" might add "string" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withScheme()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withUserInfo()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withHost()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withPort()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withPath()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withQuery()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
User Deprecated: Method "Psr\Http\Message\UriInterface::withFragment()" might add "static" as a native return type declaration in the future. Do the same in implementation "GuzzleHttp\Psr7\Uri" now to avoid errors or add an explicit @return annotation to suppress this message.
GrahamCampbell commented 2 years ago

Upgrade to 2.1.0. of this package. :)

enumag commented 2 years ago

Sorry... should have checked if I'm on the latest version... :-(