Skip to content

Commit 5527836

Browse files
committed
Fix binding array
1 parent a695db0 commit 5527836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Compiler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ public function handleBinding(string $value, string $name, ?DOMElement $node = n
735735
$node->setAttribute($name, $name);
736736
}
737737
} elseif (preg_match($regexArrayBinding, $value, $match)) {
738+
$this->logger->debug('- array binding ', ['value' => $value]);
738739
$elements = explode(',', $match[1]);
739740
foreach ($elements as $element) {
740741
$element = trim($element);
@@ -752,6 +753,7 @@ public function handleBinding(string $value, string $name, ?DOMElement $node = n
752753
$this->handleObjectBinding($items, $dynamicValues, $twigOutput);
753754
} elseif (preg_match($regexTemplateString, $value, $matches)) {
754755
// <div :class="`abc ${someDynamicClass}`">
756+
$this->logger->debug('- template string binding ', ['value' => $value]);
755757
$dynamicValues[] = $this->handleTemplateStringBinding($matches['content'], $twigOutput);
756758
} else {
757759
$value = $this->builder->refactorCondition($value);

0 commit comments

Comments
 (0)