PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
← All changes | includes/sdk/s3/JmesPath/TreeInterpreter.php +2 -2 1.2.01.4.1 View file →
@@ -13,9 +13,9 @@
13 13 * @param callable|null $fnDispatcher Function dispatching function that accepts
14 14 * a function name argument and an array of
15 15 * function arguments and returns the result.
16 16 */
17 - public function __construct(callable $fnDispatcher = null)
17 + public function __construct(?callable $fnDispatcher = null)
18 18 {
19 19 $this->fnDispatcher = $fnDispatcher ?: FnDispatcher::getInstance();
20 20 }
21 21 /**
@@ -89,9 +89,9 @@
89 89 }
90 90 $merged = [];
91 91 foreach ($value as $values) {
92 92 // Only merge up arrays lists and not hashes
93 - if (\is_array($values) && isset($values[0])) {
93 + if (\is_array($values) && \array_key_exists(0, $values)) {
94 94 $merged = \array_merge($merged, $values);
95 95 } elseif ($values !== $skipElement) {
96 96 $merged[] = $values;
97 97 }