Skip to content

Fixed readme EofCallbackStream example #545

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

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Conversation

reedy
Copy link

@reedy reedy commented Dec 27, 2022

On PHP 8.2, if you don't explicitly declare the property, you will get an error like Deprecated: Creation of dynamic property EofCallbackStream::$stream is deprecated

From what I can tell, other usages in this code base (e.g. https://github.com/guzzle/psr7/blob/b4719a1/src/DroppingStream.php#L15-L21) explicitly add a $stream property when they're using StreamDecoratorTrait.

On PHP 8.2, if you don't explicitly declare the property, you will get an error like `Deprecated: Creation of dynamic property EofCallbackStream::$stream is deprecated`

From what I can tell, other usages in this code base (e.g. https://github.com/guzzle/psr7/blob/b4719a1/src/DroppingStream.php#L15-L21) explicitly add a `$stream` property when they're using `StreamDecoratorTrait`.
@GrahamCampbell GrahamCampbell changed the title README.md: Add $stream to EofCallbackStream Fixed readme EofCallbackStream example Dec 27, 2022
@GrahamCampbell GrahamCampbell merged commit ddb46ae into guzzle:master Dec 27, 2022
@GrahamCampbell
Copy link
Member

Thanks.

@GrahamCampbell
Copy link
Member

For reference: b4719a1.

@reedy reedy deleted the patch-4 branch December 27, 2022 21:34
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.

2 participants