Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function __construct(int $level, AttributeSet $attributes = null, ElementSet $children = null) |
||
20 | { |
||
21 | $this->level = $level; |
||
22 | $this->attributes = $attributes ?? new AttributeSet(); |
||
23 | $this->children = $children ?? new ElementSet(); |
||
24 | $this->tag = new Standard("h{$level}", $attributes, $children); |
||
25 | } |
||
26 | |||
43 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: