Skip to content

Commit 463aa59

Browse files
authored
Add guard clause for Less imports
Option 1 of magento#73
1 parent 1aaf057 commit 463aa59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyzer/Less/Analyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private function getNodes(LessRegistry $registry): array
122122
/** @var Less_Tree $node */
123123
foreach ($content as $node) {
124124
//skip comments
125-
if ($node instanceof Less_Tree_Comment) {
125+
if ($node instanceof Less_Tree_Comment || $node instanceof Less_Tree_Import) {
126126
continue;
127127
}
128128
if (property_exists($node, 'name')) {

0 commit comments

Comments
 (0)