summaryrefslogtreecommitdiff
path: root/vendor/mtdowling/jmespath.php/src/TreeCompiler.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/mtdowling/jmespath.php/src/TreeCompiler.php')
-rw-r--r--vendor/mtdowling/jmespath.php/src/TreeCompiler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/mtdowling/jmespath.php/src/TreeCompiler.php b/vendor/mtdowling/jmespath.php/src/TreeCompiler.php
index fe27f41..b5f0658 100644
--- a/vendor/mtdowling/jmespath.php/src/TreeCompiler.php
+++ b/vendor/mtdowling/jmespath.php/src/TreeCompiler.php
@@ -305,7 +305,7 @@ class TreeCompiler
->write('%s = [];', $merged)
->write('foreach ($value as %s) {', $val)
->indent()
- ->write('if (is_array(%s) && isset(%s[0])) {', $val, $val)
+ ->write('if (is_array(%s) && array_key_exists(0, %s)) {', $val, $val)
->indent()
->write('%s = array_merge(%s, %s);', $merged, $merged, $val)
->outdent()