-
Notifications
You must be signed in to change notification settings - Fork 355
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
Resolved creation of dynamic property Gaufrette\StreamWrapper:: is de… #702
base: master
Are you sure you want to change the base?
Conversation
Thx for your PR. |
bump |
bump |
Any updates? |
bump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change solve the problem on my project, so I think this line is necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change solve the problem on my project
I'm using the knplabs/knp-gaufrette-bundle:v0.8.0 library
Since I have upgraded php version from 8.1 to 8.2 I am getting a deprecated warning "Deprecated: Creation of dynamic property Gaufrette\StreamWrapper::$context is deprecated in .../vendor/symfony/http-foundation/BinaryFileResponse.php on line 199" when returning the file in a controller:
return new BinaryFileResponse('gaufrette://foo/hello.txt');
I've added the public context property to the GaufretteStreamWrapper object as per the native class specification in php:
https://www.php.net/streamwrapper
With this change the code works perfectly, as it does not access the $context property dynamically.
If you think it is convenient I would like to add this change to the library.
Thanks