for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the ILess
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ILess\Node;
use ILess\Context;
use ILess\Node;
/**
* Ruleset call.
class RulesetCallNode extends Node
{
* Node type.
* @var string
protected $type = 'RulesetCall';
* @var Node
public $variable;
* Constructor.
* @param string $variable
public function __construct($variable)
$this->variable = $variable;
$variable
string
object<ILess\Node>
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* Compiles the node.
* @param Context $context The context
* @param array|null $arguments Array of arguments
* @param bool|null $important Important flag
* @return Node
public function compile(Context $context, $arguments = null, $important = null)
$variable = new VariableNode($this->variable);
$detachedRuleset = $variable->compile($context);
return $detachedRuleset->callCompile($context);
callCompile()
ILess\Node
compile()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..