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

Ensure unknown commands do not trigger a container lookup #65

Merged
merged 1 commit into from Feb 26, 2021

Conversation

weierophinney
Copy link
Member

Updates AbstractContainerCommandLoader::hasCommand() to test if the $name exists in the $commandMap before attempting to check the container.
If not, it immediately returns false.

Fixes #64

@weierophinney weierophinney linked an issue Feb 26, 2021 that may be closed by this pull request
@weierophinney weierophinney added this to the 1.0.1 milestone Feb 26, 2021
@weierophinney weierophinney added the Bug Something isn't working label Feb 26, 2021
…om container

Updates `AbstractContainerCommandLoader::hasCommand()` to test if the `$name` exists in the `$commandMap` before attempting to check the container.
If not, it immediately returns false.

Fixes laminas#64

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknown command leads to Undefined Index
1 participant