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

[Bug] Config::has() does not work properly #63

Closed
franzliedke opened this issue Jan 15, 2013 · 1 comment
Closed

[Bug] Config::has() does not work properly #63

franzliedke opened this issue Jan 15, 2013 · 1 comment

Comments

@franzliedke
Copy link
Contributor

For a non-existing config file named 'key.php', Config::has('key') returns true.

That's because Input::get('key') returns an empty array, which is different than the default value generated in the has() method.

The logic of that method could be improved to really check for the existence of such an element.

@taylorotwell
Copy link
Member

Added Config::hasGroup to address this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants