|
@@ -165,7 +165,7 @@ discard block |
|
|
block discarded – undo |
|
165
|
165
|
|
|
166
|
166
|
//get parameter from constructor |
|
167
|
167
|
//can return error when constructor not declared |
|
168
|
|
- $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters(); |
|
|
168
|
+ $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters(); |
|
169
|
169
|
//this should resolve the error when a class without constructor is encountered |
|
170
|
170
|
$parameters = \is_null($constructor) ? [] : $constructor->getParameters(); |
|
171
|
171
|
|
|
@@ -220,7 +220,7 @@ discard block |
|
|
block discarded – undo |
|
220
|
220
|
|
|
221
|
221
|
//get parameter from constructor |
|
222
|
222
|
//can return error when constructor not declared |
|
223
|
|
- $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters(); |
|
|
223
|
+ $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters(); |
|
224
|
224
|
//this should resolve the error when a class without constructor is encountered |
|
225
|
225
|
$parameters = \is_null($constructor) ? [] : $constructor->getParameters(); |
|
226
|
226
|
|
Please login to merge, or discard this patch.