diff --git a/lib/Less/Tree/Variable.php b/lib/Less/Tree/Variable.php index 5410fcc8..e88f16b2 100644 --- a/lib/Less/Tree/Variable.php +++ b/lib/Less/Tree/Variable.php @@ -20,16 +20,14 @@ public function __construct( $name, $index = null, $currentFileInfo = null ) { /** * @param Less_Environment $env - * @return Less_Tree + * @return Less_Tree|Less_Tree_Keyword|Less_Tree_Quoted * @see less-2.5.3.js#Ruleset.prototype.eval */ public function compile( $env ) { if ( $this->name[1] === '@' ) { $v = new self( substr( $this->name, 1 ), $this->index + 1, $this->currentFileInfo ); - // While some Less_Tree nodes have no 'value', we know these can't ocurr after a variable - // assignment (would have been a ParseError). - // TODO: Solve better (https://phabricator.wikimedia.org/T327082). - // @phan-suppress-next-line PhanUndeclaredProperty + // While some Less_Tree nodes have no 'value', we know these can't occur after a + // variable assignment (would have been a ParseError). $name = '@' . $v->compile( $env )->value; } else { $name = $this->name;