File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/Bridges/AssetsLatte/Nodes Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1414use Latte \Compiler \Nodes \AuxiliaryNode ;
1515use Latte \Compiler \Nodes \Html \AttributeNode ;
1616use Latte \Compiler \Nodes \Html \ElementNode ;
17+ use Latte \Compiler \Nodes \Html \ExpressionAttributeNode ;
1718use Latte \Compiler \Nodes \Php \Expression \ArrayNode ;
1819use Latte \Compiler \Nodes \Php \ExpressionNode ;
1920use Latte \Compiler \Nodes \StatementNode ;
@@ -89,6 +90,8 @@ public static function findUsedAttributes(ElementNode $el): array
8990 foreach ($ el ->attributes ?->children as $ child ) {
9091 if ($ child instanceof AttributeNode && $ child ->name instanceof TextNode) {
9192 $ res [$ child ->name ->content ] = NodeHelpers::toText ($ child ->value ) ?? true ;
93+ } elseif ($ child instanceof ExpressionAttributeNode) {
94+ $ res [$ child ->name ] = true ;
9295 }
9396 }
9497 return $ res ;
You can’t perform that action at this time.
0 commit comments