We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae92215 commit 9c56991Copy full SHA for 9c56991
src/main/php/lang/reflection/Type.class.php
@@ -204,7 +204,7 @@ public function newInstance(... $args) {
204
$constructor= $this->reflect->hasMethod('__construct');
205
try {
206
if ($constructor) {
207
- $pass= PHP_VERSION_ID < 80000 && $args ? Routine::pass($constructor, $args) : $args;
+ $pass= PHP_VERSION_ID < 80000 && $args ? Routine::pass($this->reflect->getMethod('__construct'), $args) : $args;
208
return $this->reflect->newInstanceArgs($pass);
209
} else {
210
return $this->reflect->newInstance();
0 commit comments