Skip to content
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

When Using withPrefix Without Mappers on the Base, a PHP Notice is Generated #7

Closed
jimdelois opened this issue Jun 14, 2016 · 0 comments
Labels

Comments

@jimdelois
Copy link
Contributor

NOTICE: PHP message: PHP Warning:  Invalid argument supplied for foreach() in /app/vendor/improvframework/configuration/src/Configuration.php on line 130

This occurs because the private Configuration::$mappers variable is not correctly initialized to an array. When there are no mappers added to the base Configuration object (which effectively converts it to an array), then the iterating of this null variable causes a PHP warning.

@jimdelois jimdelois added the bug label Jun 14, 2016
jimdelois pushed a commit to jimdelois/configuration that referenced this issue Jun 14, 2016
jimdelois pushed a commit to jimdelois/configuration that referenced this issue Jun 14, 2016
jimdelois added a commit to jimdelois/configuration that referenced this issue Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant