1 | <?php |
||
20 | class ValueNode extends Node |
||
21 | { |
||
22 | /** |
||
23 | * Node type. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $type = 'Value'; |
||
28 | |||
29 | /** |
||
30 | * Constructor. |
||
31 | * |
||
32 | * @param array $value Array of value |
||
33 | */ |
||
34 | public function __construct(array $value) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function accept(VisitorInterface $visitor) |
||
46 | |||
47 | /** |
||
48 | * Compiles the node. |
||
49 | * |
||
50 | * @param Context $context The context |
||
51 | * @param array|null $arguments Array of arguments |
||
52 | * @param bool|null $important Important flag |
||
53 | * |
||
54 | * @return ValueNode |
||
55 | */ |
||
56 | public function compile(Context $context, $arguments = null, $important = null) |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function generateCSS(Context $context, OutputInterface $output) |
||
82 | } |
||
83 |
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: