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

Fix #48: Add array type verification before accessing index #49

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

alariva
Copy link
Contributor

@alariva alariva commented Nov 15, 2019

Since the $rule may now be array as well as a Closure, the array type must be checked before trying to access indexes.
Also, applyFilter calls is corrected to respect it's signature.
This should fix ErrorException Illegal string offset 'name' being thrown.

Fixes #48


This change is Reviewable

Since the $rule may now be array as well as a Closure, the array type must be checked before trying to access indexes.
Also, `applyFilter` calls is corrected to respect it's signature.
This should fix `ErrorException Illegal string offset 'name'` being thrown.

Fixes Waavi#48
Copy link

@pperzyna pperzyna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alariva alariva changed the title Add array type verification before accessing index Fix #48: Add array type verification before accessing index Nov 22, 2019
@sharifzadesina
Copy link
Contributor

@sildraug Can you please merge this PR?

@sildraug sildraug merged commit bc7bc73 into Waavi:master Nov 27, 2019
@alariva alariva deleted the patch-2 branch November 27, 2019 13:19
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

Successfully merging this pull request may close these issues.

ErrorException Illegal string offset 'name'
4 participants