1 | <?php |
||
21 | class ExpressionNode extends Node implements MarkableAsReferencedInterface |
||
22 | { |
||
23 | /** |
||
24 | * Node type. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $type = 'Expression'; |
||
29 | |||
30 | /** |
||
31 | * Parens flag. |
||
32 | * |
||
33 | * @var bool |
||
34 | */ |
||
35 | public $parens = false; |
||
36 | |||
37 | /** |
||
38 | * Parens in operator flag. |
||
39 | * |
||
40 | * @var bool |
||
41 | */ |
||
42 | public $parensInOp = false; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | * |
||
47 | * @param array $value |
||
48 | * |
||
49 | * @throws Exception |
||
50 | */ |
||
51 | public function __construct(array $value) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function accept(VisitorInterface $visitor) |
||
63 | |||
64 | /** |
||
65 | * Compiles the node. |
||
66 | * |
||
67 | * @param Context $context The context |
||
68 | * @param array|null $arguments Array of arguments |
||
69 | * @param bool|null $important Important flag |
||
70 | * |
||
71 | * @return ParenNode|ExpressionNode|Node |
||
72 | */ |
||
73 | public function compile(Context $context, $arguments = null, $important = null) |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function generateCSS(Context $context, OutputInterface $output) |
||
123 | |||
124 | public function throwAwayComments() |
||
137 | |||
138 | /** |
||
139 | * Marks as referenced. |
||
140 | */ |
||
141 | public function markReferenced() |
||
149 | } |
||
150 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: