@@ -16,18 +16,18 @@ discard block |
||
16 | 16 | */ |
17 | 17 | protected static $instance; |
18 | 18 | |
19 | - /** |
|
20 | - * The container's bound services. |
|
21 | - * |
|
22 | - * @var array |
|
23 | - */ |
|
19 | + /** |
|
20 | + * The container's bound services. |
|
21 | + * |
|
22 | + * @var array |
|
23 | + */ |
|
24 | 24 | protected $services = []; |
25 | 25 | |
26 | - /** |
|
27 | - * The container's bucket items |
|
28 | - * |
|
29 | - * @var array |
|
30 | - */ |
|
26 | + /** |
|
27 | + * The container's bucket items |
|
28 | + * |
|
29 | + * @var array |
|
30 | + */ |
|
31 | 31 | protected $bucket = []; |
32 | 32 | |
33 | 33 | /** |
@@ -123,10 +123,10 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * Register a Provider. |
|
127 | - * |
|
128 | - * @return void |
|
129 | - */ |
|
126 | + * Register a Provider. |
|
127 | + * |
|
128 | + * @return void |
|
129 | + */ |
|
130 | 130 | public function register( $provider ) |
131 | 131 | { |
132 | 132 | $provider->register( $this ); |
@@ -148,17 +148,17 @@ discard block |
||
148 | 148 | return $abstract; |
149 | 149 | } |
150 | 150 | |
151 | - /** |
|
152 | - * @param \ReflectionParameter $parameter |
|
153 | - * @return null|\ReflectionClass|\ReflectionNamedType|\ReflectionType |
|
154 | - */ |
|
155 | - protected function getClass($parameter) |
|
156 | - { |
|
157 | - if (version_compare(phpversion(), '8', '<')) { |
|
158 | - return $parameter->getClass(); // @compat PHP < 8 |
|
159 | - } |
|
160 | - return $parameter->getType(); |
|
161 | - } |
|
151 | + /** |
|
152 | + * @param \ReflectionParameter $parameter |
|
153 | + * @return null|\ReflectionClass|\ReflectionNamedType|\ReflectionType |
|
154 | + */ |
|
155 | + protected function getClass($parameter) |
|
156 | + { |
|
157 | + if (version_compare(phpversion(), '8', '<')) { |
|
158 | + return $parameter->getClass(); // @compat PHP < 8 |
|
159 | + } |
|
160 | + return $parameter->getType(); |
|
161 | + } |
|
162 | 162 | |
163 | 163 | /** |
164 | 164 | * Throw an exception that the concrete is not instantiable. |