@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | |
444 | 444 | /** |
445 | 445 | * @param $block |
446 | - * @param $out |
|
446 | + * @param \stdClass $out |
|
447 | 447 | * |
448 | 448 | * @throws \LesserPhp\Exception\GeneralException |
449 | 449 | */ |
@@ -1724,7 +1724,7 @@ discard block |
||
1724 | 1724 | } |
1725 | 1725 | |
1726 | 1726 | /** |
1727 | - * @param $parent |
|
1727 | + * @param NodeEnv $parent |
|
1728 | 1728 | * @param null $block |
1729 | 1729 | * |
1730 | 1730 | * @return \LesserPhp\NodeEnv |
@@ -991,7 +991,7 @@ discard block |
||
991 | 991 | |
992 | 992 | $orderedArgs = []; |
993 | 993 | $keywordArgs = []; |
994 | - foreach ((array)$args as $arg) { |
|
994 | + foreach ((array) $args as $arg) { |
|
995 | 995 | switch ($arg[0]) { |
996 | 996 | case "arg": |
997 | 997 | if (!isset($arg[2])) { |
@@ -1088,8 +1088,7 @@ discard block |
||
1088 | 1088 | $result = $this->tryImport($importPath, $block, $out); |
1089 | 1089 | |
1090 | 1090 | $this->env->addImports($importId, $result === false ? |
1091 | - [false, "@import " . $this->compileValue($importPath) . ";"] : |
|
1092 | - $result); |
|
1091 | + [false, "@import " . $this->compileValue($importPath) . ";"] : $result); |
|
1093 | 1092 | |
1094 | 1093 | break; |
1095 | 1094 | case "import_mixin": |
@@ -1322,7 +1321,7 @@ discard block |
||
1322 | 1321 | $key = $this->vPrefix . $this->compileValue($this->functions->e($key)); |
1323 | 1322 | } |
1324 | 1323 | |
1325 | - $seen =& $this->env->seenNames; |
|
1324 | + $seen = & $this->env->seenNames; |
|
1326 | 1325 | |
1327 | 1326 | if (!empty($seen[$key])) { |
1328 | 1327 | $this->throwError("infinite loop detected: $key"); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * Parser constructor. |
100 | 100 | * |
101 | 101 | * @param \LesserPhp\Compiler $lessc |
102 | - * @param null $sourceName |
|
102 | + * @param string $sourceName |
|
103 | 103 | */ |
104 | 104 | public function __construct(Compiler $lessc, $sourceName = null) |
105 | 105 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * @param $buffer |
|
126 | + * @param string $buffer |
|
127 | 127 | * |
128 | 128 | * @return mixed |
129 | 129 | * @throws \LesserPhp\Exception\GeneralException |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | * recursively parse infix equation with $lhs at precedence $minP |
477 | 477 | * |
478 | 478 | * @param $lhs |
479 | - * @param $minP |
|
479 | + * @param integer $minP |
|
480 | 480 | * |
481 | 481 | * @return array |
482 | 482 | */ |
@@ -810,10 +810,10 @@ discard block |
||
810 | 810 | /** |
811 | 811 | * an unbounded string stopped by $end |
812 | 812 | * |
813 | - * @param $end |
|
813 | + * @param string $end |
|
814 | 814 | * @param $out |
815 | 815 | * @param null $nestingOpen |
816 | - * @param null $rejectStrs |
|
816 | + * @param string[] $rejectStrs |
|
817 | 817 | * |
818 | 818 | * @return bool |
819 | 819 | */ |
@@ -1648,7 +1648,7 @@ discard block |
||
1648 | 1648 | * @param bool $until |
1649 | 1649 | * @param bool $allowNewline |
1650 | 1650 | * |
1651 | - * @return bool |
|
1651 | + * @return null|boolean |
|
1652 | 1652 | */ |
1653 | 1653 | protected function to($what, &$out, $until = false, $allowNewline = false) |
1654 | 1654 | { |
@@ -1823,7 +1823,7 @@ discard block |
||
1823 | 1823 | /** |
1824 | 1824 | * push a block that doesn't multiply tags |
1825 | 1825 | * |
1826 | - * @param $type |
|
1826 | + * @param string $type |
|
1827 | 1827 | * |
1828 | 1828 | * @return \stdClass |
1829 | 1829 | */ |
@@ -1849,7 +1849,7 @@ discard block |
||
1849 | 1849 | /** |
1850 | 1850 | * pop something off the stack |
1851 | 1851 | * |
1852 | - * @return mixed |
|
1852 | + * @return null|\stdClass |
|
1853 | 1853 | */ |
1854 | 1854 | protected function pop() |
1855 | 1855 | { |