1 | <?php |
||
18 | class TokenResolver implements ResolverInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $tokens = []; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $groups = []; |
||
29 | |||
30 | /** |
||
31 | * @param Readable $readable |
||
32 | * @param TokenInterface $token |
||
33 | */ |
||
34 | public function resolve(Readable $readable, TokenInterface $token): void |
||
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: