flysystem-stream-wrapper icon indicating copy to clipboard operation
flysystem-stream-wrapper copied to clipboard

Add in the `public $context` property to the stream wrapper.

Open adam-vessey opened this issue 2 years ago • 2 comments

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?

adam-vessey avatar Oct 13 '23 16:10 adam-vessey

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.

Unifex avatar Nov 07 '23 00:11 Unifex

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.

KaseyMK avatar Feb 21 '24 16:02 KaseyMK