1 | <?php |
||
14 | final class Parameter extends AbstractElement |
||
15 | { |
||
16 | public function __construct(AttributeSet $attributes = null) |
||
21 | |||
22 | public function withAttribute(string $name, string $value = null): Parameter |
||
32 | |||
33 | public function withName(string $name): Parameter |
||
37 | |||
38 | public function withValue(string $value): Parameter |
||
42 | } |
||
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: