1 | <?php |
||
11 | trait RouteReflection |
||
12 | { |
||
13 | /** @var array */ |
||
14 | protected static $numberOfParameters = []; |
||
15 | |||
16 | /** @var */ |
||
17 | protected static $reflectionObject; |
||
18 | |||
19 | /** @var null */ |
||
20 | protected static $resolveMethodName = null; |
||
21 | |||
22 | /** |
||
23 | * @param object $object |
||
24 | * @param string|null $method |
||
25 | */ |
||
26 | protected static function createReflection($object, string $method = null) |
||
33 | |||
34 | /** |
||
35 | * @param int $position |
||
36 | * @return int |
||
37 | */ |
||
38 | protected static function getPointersAndReturnRequired(int $position) |
||
42 | |||
43 | /** |
||
44 | * ... |
||
45 | * @return array |
||
46 | */ |
||
47 | protected static function resolveParameters() |
||
67 | |||
68 | /** |
||
69 | * Check whether injected class is registered in container. |
||
70 | * |
||
71 | * @param string $className |
||
72 | * @return bool |
||
73 | */ |
||
74 | protected static function checkClassRegisterContainer(string $className) |
||
81 | |||
82 | /** |
||
83 | * Get all parameters to object |
||
84 | * |
||
85 | * @return mixed |
||
86 | */ |
||
87 | protected static function getParametersObject() |
||
97 | } |
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: