mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
fix use of deprecated methods
This commit is contained in:
@@ -663,7 +663,7 @@ trait ContainerTrait
|
||||
{
|
||||
try {
|
||||
// 尝试解析
|
||||
return $this->make($parameter->getClass()->name);
|
||||
return $this->make(ReflectionUtil::getParameterClassName($parameter));
|
||||
} catch (EntryResolutionException $e) {
|
||||
// 如果参数是可选的,则返回默认值
|
||||
if ($parameter->isDefaultValueAvailable()) {
|
||||
|
||||
Reference in New Issue
Block a user