We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f6252 commit 1d656f8Copy full SHA for 1d656f8
src/Compiler.php
@@ -5004,15 +5004,19 @@ protected function libMapMerge($args)
5004
$map2 = $this->assertMap($args[1]);
5005
5006
foreach ($map2[1] as $i2 => $key2) {
5007
+ $key = $this->compileStringContent($this->coerceString($key2));
5008
+
5009
foreach ($map1[1] as $i1 => $key1) {
- if ($this->compileStringContent($this->coerceString($key1)) === $this->compileStringContent($this->coerceString($key2))) {
5010
+ if ($key === $this->compileStringContent($this->coerceString($key1))) {
5011
$map1[2][$i1] = $map2[2][$i2];
5012
continue 2;
5013
}
5014
5015
5016
$map1[1][] = $map2[1][$i2];
5017
$map1[2][] = $map2[2][$i2];
5018
5019
5020
return $map1;
5021
5022
0 commit comments