-
Notifications
You must be signed in to change notification settings - Fork 11
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
PdoSnapshotStoreFactory is trying to modificate 'config' object #28
Comments
@sandrokeil can you elaborate? |
Maybe you can create a separate variable in the anonymous function for the config |
I'm not sure this is fixable. As the Illuminate Repository class does not allow for this 'Indirect modification of overloaded element'.
Extracting the config array from an ArrayObject in a generic way is also not possible. Illuminate\Config\Repository uses Maybe it is time to simply remove this fix. Perhaps throw an exception if the key is still omitted? Would be BC though. |
Since this issue seems to be stalled, I'll close it. Feel free to reopen or create a new issue. |
Hello,
I'm trying to integrate this great package with my existing project.
I've encountered a problem with the
PdoSnapshotStoreFactory
on line 66:$config = &$config[$dimension];
the factory tries to change an existing object provided by the Container.Is it an expected behavior? In my environment, it throws an
Indirect modification of overloaded element of Illuminate\\Config\\Repository has no effect
because of this modification attempt. In some other environments, there can be other difficulties because of modification of the external object.Is it possible to solve this issue and don't change the config object provided by the Container?
The text was updated successfully, but these errors were encountered: