@@ -159,11 +159,11 @@ |
||
159 | 159 | while (true) { |
160 | 160 | |
161 | 161 | //initialize array if not already initialized |
162 | - $this->tree[$level][$class] ??= []; |
|
162 | + $this->tree[$level][$class] ?? = []; |
|
163 | 163 | |
164 | 164 | //get parameter from constructor |
165 | 165 | //can return error when constructor not declared |
166 | - $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters(); |
|
166 | + $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters(); |
|
167 | 167 | //this should be resolve the error of when a class without constructor is encountered |
168 | 168 | $parameters = \is_null($constructor) ? [] : $constructor->getParameters(); |
169 | 169 |