1 | <?php |
||
21 | class OperationNode extends Node |
||
22 | { |
||
23 | /** |
||
24 | * Node type. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $type = 'Operation'; |
||
29 | |||
30 | /** |
||
31 | * Operator. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $operator; |
||
36 | |||
37 | /** |
||
38 | * Array of operands. |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $operands; |
||
43 | |||
44 | /** |
||
45 | * Is spaced flag. |
||
46 | * |
||
47 | * @var bool |
||
48 | */ |
||
49 | public $isSpaced = false; |
||
50 | |||
51 | /** |
||
52 | * Parens. |
||
53 | * |
||
54 | * @var bool |
||
55 | */ |
||
56 | public $parensInOp = false; |
||
57 | |||
58 | /** |
||
59 | * Constructor. |
||
60 | * |
||
61 | * @param string $operator The operator |
||
62 | * @param array $operands Array of operands |
||
63 | * @param bool $isSpaced Is spaced? |
||
64 | */ |
||
65 | public function __construct($operator, array $operands, $isSpaced = false) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function accept(VisitorInterface $visitor) |
||
79 | |||
80 | /** |
||
81 | * Compiles the node. |
||
82 | * |
||
83 | * @param Context $context The context |
||
84 | * @param array|null $arguments Array of arguments |
||
85 | * @param bool|null $important Important flag |
||
86 | * |
||
87 | * @throws CompilerException |
||
88 | * |
||
89 | * @return Node |
||
90 | */ |
||
91 | public function compile(Context $context, $arguments = null, $important = null) |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function generateCSS(Context $context, OutputInterface $output) |
||
134 | } |
||
135 |
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..