Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb2fc5f

Browse files
committed
no warning for mixins with no args at all
1 parent 63b95c4 commit eb2fc5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessc.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ function compileProp($prop, $block, $tags, &$_lines, &$_blocks) {
12021202
case 'mixin':
12031203
list(, $path, $args) = $prop;
12041204

1205-
$args = array_map(array($this, "reduce"), $args);
1205+
$args = array_map(array($this, "reduce"), (array)$args);
12061206
$mixins = $this->findBlocks($block, $path, $args);
12071207
if (is_null($mixins)) {
12081208
// echo "failed to find block: ".implode(" > ", $path)."\n";

0 commit comments

Comments
 (0)