Skip to content

Commit

Permalink
Add guard clause for Less imports
Browse files Browse the repository at this point in the history
Option 1 of #73
  • Loading branch information
furan917 authored Oct 6, 2023
1 parent 1aaf057 commit 463aa59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyzer/Less/Analyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private function getNodes(LessRegistry $registry): array
/** @var Less_Tree $node */
foreach ($content as $node) {
//skip comments
if ($node instanceof Less_Tree_Comment) {
if ($node instanceof Less_Tree_Comment || $node instanceof Less_Tree_Import) {
continue;
}
if (property_exists($node, 'name')) {
Expand Down

0 comments on commit 463aa59

Please sign in to comment.