Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2 Deprecated Messages #549

Closed
Ragowit opened this issue Feb 17, 2023 · 3 comments
Closed

PHP 8.2 Deprecated Messages #549

Ragowit opened this issue Feb 17, 2023 · 3 comments

Comments

@Ragowit
Copy link

Ragowit commented Feb 17, 2023

PHP version: 8.2.3

Description
Just updated to PHP 8.2, and started to get PHP Deprecated errors in my logs.

How to reproduce

Possible Solution

Additional context

[17-Feb-2023 21:06:56 UTC] PHP Deprecated:  Creation of dynamic property Tustin\Haste\Http\JsonStream::$stream is deprecated in /home/psn100/public_html/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php on line 21

Added an issue at Tustin/Haste#2 as well if it's a Tustin\Haste issue.

@GrahamCampbell
Copy link
Member

What version of this library are you using please?

@Ragowit
Copy link
Author

Ragowit commented Feb 17, 2023

[psn100@server public_html]$ composer show
guzzlehttp/guzzle             7.5.0              Guzzle is a PHP HTTP client library
guzzlehttp/promises           1.5.2              Guzzle promises library
guzzlehttp/psr7               2.4.3              PSR-7 message implementation that also provides common utility methods
nesbot/carbon                 2.66.0             An API extension for DateTime that supports 281 different languages.
psr/http-client               1.0.1              Common interface for HTTP clients
psr/http-factory              1.0.1              Common interfaces for PSR-7 HTTP message factories
psr/http-message              1.0.1              Common interface for HTTP messages
ralouphie/getallheaders       3.0.3              A polyfill for getallheaders.
symfony/deprecation-contracts v3.2.0             A generic function and convention to trigger deprecation notices
symfony/polyfill-mbstring     v1.27.0            Symfony polyfill for the Mbstring extension
symfony/polyfill-php80        v1.27.0            Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/translation           v6.2.5             Provides tools to internationalize your application
symfony/translation-contracts v3.2.0             Generic abstractions related to translation
tustin/haste                  v1.1.0             HTTP library for my API library projects
tustin/psn-php                dev-master 5d9a357 PHP wrapper for the PlayStation API.

@GrahamCampbell
Copy link
Member

Yep, this is an issue in Tustin\Haste. They need to define the stream property. See https://github.com/guzzle/psr7/blob/master/src/LazyOpenStream.php, for example.

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

No branches or pull requests

2 participants