Commit 507c42e
committed
Change getData() so that it can be mixed instead of array
The constructor itself allows $data to be mixed and the functions in
AccessHelper has various conditional statements to process the data
depending on whether it is an array or an implementation of ArrayAccess.
However, getData() is explicitly typed to return an array which means
any attempts to get the source object after creating a JSONPath of it
will cause a TypeError to be raised. Changing getData() to return mixed
instead of array will help fix this inconsistency.
Signed-off-by: Remy Suen <[email protected]>1 parent 3a6108a commit 507c42e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments