1 | <?php |
||
17 | final class ServicesByTypeMapCompilerPass implements CompilerPassInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var ServicesByTypeMap |
||
21 | */ |
||
22 | private $serviceMap; |
||
23 | |||
24 | 2 | public function __construct(ServicesByTypeMap $servicesByTypeMap) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 2 | public function process(ContainerBuilder $containerBuilder) |
|
46 | |||
47 | 2 | private function isValidServiceDefinition(Definition $definition) : bool |
|
63 | } |
||
64 |
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: