1 | <?php |
||
10 | class TimeZoneProvider implements ITimeZoneProvider { |
||
11 | /** |
||
12 | * @var string[] |
||
13 | */ |
||
14 | private $timeZones = []; |
||
15 | |||
16 | /** |
||
17 | * @var ISystem |
||
18 | */ |
||
19 | private $system; |
||
20 | |||
21 | /** |
||
22 | * @param ISystem $system |
||
23 | */ |
||
24 | 1010 | public function __construct(ISystem $system) { |
|
27 | |||
28 | 504 | public function get(string $host): string { |
|
54 | } |
||
55 |
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: