Skip to content

Add in the public $context property to the stream wrapper.#28

Open
adam-vessey wants to merge 1 commit into
twistor:masterfrom
adam-vessey:fix/php8.2-deprecated-dynamic-prop
Open

Add in the public $context property to the stream wrapper.#28
adam-vessey wants to merge 1 commit into
twistor:masterfrom
adam-vessey:fix/php8.2-deprecated-dynamic-prop

Conversation

@adam-vessey

Copy link
Copy Markdown

I believe this should fix #27

Got here via drupal/flysystem.

It looks like the property should have been there for a long time (as in, added in PHP 5 days, according to the wayback machine), and is only being exposed now with the bump to PHP 8.2 being more strict with dynamic properties?

@Unifex

Unifex commented Nov 7, 2023

Copy link
Copy Markdown

I also landed here the same way @adam-vessey did. I'm now adding this package directly via composer and using cwegans/composer-patches to apply this patch. The "Deprecated function: Creation of dynamic property..." messages flooding my logs are gone. This gets a +1 from me.

@KaseyMK

KaseyMK commented Feb 21, 2024

Copy link
Copy Markdown

Thanks for this! Also came here via Drupal's flysystem module and installing twistor/flysystem-stream-wrapper with a patch from this PR seems to solve my problem.

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.

Incompatible with PHP 8.2

3 participants