File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/Symfony/Component/DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,13 @@ private function checkArgumentsTypeHints(\ReflectionFunctionAbstract $reflection
107
107
*/
108
108
8627
private function checkTypeHint ($ configurationArgument , \ReflectionParameter $ parameter ): void
109
109
{
110
- if ($ configurationArgument instanceof Reference) {
111
- $ referencedDefinition = $ this ->container ->findDefinition ((string ) $ configurationArgument );
110
+ $ referencedDefinition = $ configurationArgument ;
111
+
112
+ if ($ referencedDefinition instanceof Reference) {
113
+ $ referencedDefinition = $ this ->container ->findDefinition ((string ) $ referencedDefinition );
114
+ }
115
+
116
+ if ($ referencedDefinition instanceof Definition) {
112
117
$ class = $ this ->getClassName ($ referencedDefinition );
113
118
114
119
if (!$ this ->autoload && !class_exists ($ class , false )) {
You can’t perform that action at this time.
0 commit comments