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