Skip to content

Commit 7096bef

Browse files
committed
- fixes a magic method (deprecated in PHP 7.4)
1 parent e1e4f14 commit 7096bef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DIReflector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function getFromParameterType(
121121
return $parameter->getDefaultValue();
122122
}
123123

124-
return $container->new($class);
124+
return $container->new($class->getName());
125125
}
126126

127127
protected function getFromParameter(DIContainerInterface $container, ReflectionParameter $parameter)

0 commit comments

Comments
 (0)