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

ValidHookName: bug fix / skip over array keys #1712

Merged
merged 1 commit into from Jun 3, 2019

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 22, 2019

String array keys for variable array access would also be examined as part of the hook name, while those should be skipped over as they are not part of the _hook_name.

This fixes that.

Includes unit test.

This commit also lowers the nesting level of the loop by continuing early whenever possible.

String array keys for variable array access would also be examined as part of the hook name, while those should be skipped over as they are not part of the _hook_name.

This fixes that.

Includes unit test.

This commit also lowers the nesting level of the loop by continuing early whenever possible.
@jrfnl
Copy link
Member Author

jrfnl commented Jun 1, 2019

@GaryJones Any particular reason not to merge this (yet) ?

@GaryJones GaryJones merged commit 744b379 into develop Jun 3, 2019
@delete-merged-branch delete-merged-branch bot deleted the feature/validhookname-bugfix branch June 3, 2019 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants