1 | <?php |
||
23 | class CallNode extends Node |
||
24 | { |
||
25 | /** |
||
26 | * Node type. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $type = 'Call'; |
||
31 | |||
32 | /** |
||
33 | * The function name. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $name; |
||
38 | |||
39 | /** |
||
40 | * Array of arguments. |
||
41 | * |
||
42 | * @var array |
||
43 | */ |
||
44 | protected $args = []; |
||
45 | |||
46 | /** |
||
47 | * The index. |
||
48 | * |
||
49 | * @var int |
||
50 | */ |
||
51 | protected $index = 0; |
||
52 | |||
53 | /** |
||
54 | * Constructor. |
||
55 | * |
||
56 | * @param string $name Name of the function |
||
57 | * @param array $args Array of arguments |
||
58 | * @param int $index The current index |
||
59 | * @param FileInfo $currentFileInfo The current file info |
||
60 | */ |
||
61 | public function __construct($name, array $args, $index = 0, FileInfo $currentFileInfo = null) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function accept(VisitorInterface $visitor) |
||
78 | |||
79 | /** |
||
80 | * Compiles the node. |
||
81 | * |
||
82 | * @param Context $context The context |
||
83 | * @param array|null $arguments Array of arguments |
||
84 | * @param bool|null $important Important flag |
||
85 | * |
||
86 | * @return CallNode|Node |
||
87 | * |
||
88 | * @throws FunctionException |
||
89 | */ |
||
90 | public function compile(Context $context, $arguments = null, $important = null) |
||
115 | |||
116 | /** |
||
117 | * {@inheritdoc} |
||
118 | */ |
||
119 | public function generateCSS(Context $context, OutputInterface $output) |
||
142 | } |
||
143 |
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..