1 | <?php |
||
21 | class MediaNode extends DirectiveNode |
||
22 | { |
||
23 | /** |
||
24 | * Media type. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $type = 'Media'; |
||
29 | |||
30 | /** |
||
31 | * Current index. |
||
32 | * |
||
33 | * @var int |
||
34 | */ |
||
35 | public $index = 0; |
||
36 | |||
37 | /** |
||
38 | * Features. |
||
39 | * |
||
40 | * @var ValueNode |
||
41 | */ |
||
42 | public $features; |
||
43 | |||
44 | /** |
||
45 | * Rules. |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | public $rules = []; |
||
50 | |||
51 | /** |
||
52 | * Referenced flag. |
||
53 | * |
||
54 | * @var bool |
||
55 | */ |
||
56 | public $isReferenced = false; |
||
57 | |||
58 | /** |
||
59 | * @var array |
||
60 | */ |
||
61 | public $allExtends = []; |
||
62 | |||
63 | /** |
||
64 | * Constructor. |
||
65 | * |
||
66 | * @param array $value The array of values |
||
67 | * @param array $features The array of features |
||
68 | * @param int $index The index |
||
69 | * @param FileInfo $currentFileInfo The current file info |
||
70 | */ |
||
71 | public function __construct( |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function accept(VisitorInterface $visitor) |
||
99 | |||
100 | /** |
||
101 | * {@inheritdoc} |
||
102 | */ |
||
103 | public function generateCSS(Context $context, OutputInterface $output) |
||
109 | |||
110 | /** |
||
111 | * Compiles the node. |
||
112 | * |
||
113 | * @param Context $context The context |
||
114 | * @param array|null $arguments Array of arguments |
||
115 | * @param bool|null $important Important flag |
||
116 | * |
||
117 | * @return RulesetNode |
||
118 | */ |
||
119 | public function compile(Context $context, $arguments = null, $important = null) |
||
165 | |||
166 | /** |
||
167 | * Compiles top media. |
||
168 | * |
||
169 | * @param Context $context |
||
170 | * |
||
171 | * @return RulesetNode |
||
172 | */ |
||
173 | public function compileTop(Context $context) |
||
188 | |||
189 | /** |
||
190 | * Compiles nested media. |
||
191 | * |
||
192 | * @param Context $context |
||
193 | * |
||
194 | * @return RulesetNode |
||
195 | */ |
||
196 | public function compileNested(Context $context) |
||
231 | |||
232 | /** |
||
233 | * Creates permutations. |
||
234 | * |
||
235 | * @param array $array The array |
||
236 | * |
||
237 | * @return array |
||
238 | */ |
||
239 | public function permute(array $array) |
||
259 | |||
260 | /** |
||
261 | * Bubbles the selectors. |
||
262 | * |
||
263 | * @param array $selectors |
||
264 | */ |
||
265 | public function bubbleSelectors(array $selectors) |
||
275 | |||
276 | /** |
||
277 | * @return bool |
||
278 | */ |
||
279 | public function isRulesetLike() |
||
283 | } |
||
284 |
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..