-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Loosing of settings from config file #169
Comments
As a decision we can split default options and passed options: final class ConfigResolver
{
private const DEFAULT_OPTIONS = [
// ...
self::OPTION_CACHE_FILE => self::DEFAULT_CACHE_FILE,
self::OPTION_NO_CACHE => false,
// ...
];
private array $options = [];
public function resolve(): array
{
// ...
$conf = array_replace_recursive(self::DEFAULT_OPTIONS, $conf, $this->options);
// ...
}
} |
Could you provide real example of usage and what values you lost ? |
@llaville, for example it is
|
Can confirm that |
I'll give a full answer tomorrow. |
My answer is available by #171 |
Situation is came back to normal with new releases 3.4.0, 4.5.0, 5.5.0 or 6.1.0 depending of your PHP version / platform. This issue will be fixed for future version 7.0 |
As previous releases came back to a stable situation, I'll close this issue that is no more valuable. |
Right now with
ConfigResolver
we loose configuration options like #163 because ofarray_replace_recursive
:The text was updated successfully, but these errors were encountered: