Skip to content

Commit 83d9a41

Browse files
committed
fixed ReflectionParameter::getDefaultValue() error [Closes #315]
This reverts commit 1c247c0.
1 parent 50beb32 commit 83d9a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DI/DependencyChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private static function hashParameters(\ReflectionFunctionAbstract $method): arr
179179
(string) $param->getType(),
180180
$param->isVariadic(),
181181
$param->isDefaultValueAvailable()
182-
? is_object($tmp = $param->getDefaultValue()) ? ['object' => $tmp::class] : ['value' => $tmp]
182+
? is_object($tmp = Reflection::getParameterDefaultValue($param)) ? ['object' => $tmp::class] : ['value' => $tmp]
183183
: null,
184184
];
185185
}

0 commit comments

Comments
 (0)