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 50beb32 commit 83d9a41Copy full SHA for 83d9a41
src/DI/DependencyChecker.php
@@ -179,7 +179,7 @@ private static function hashParameters(\ReflectionFunctionAbstract $method): arr
179
(string) $param->getType(),
180
$param->isVariadic(),
181
$param->isDefaultValueAvailable()
182
- ? is_object($tmp = $param->getDefaultValue()) ? ['object' => $tmp::class] : ['value' => $tmp]
+ ? is_object($tmp = Reflection::getParameterDefaultValue($param)) ? ['object' => $tmp::class] : ['value' => $tmp]
183
: null,
184
];
185
}
0 commit comments