Skip to content

Commit 068e688

Browse files
sveneldnicolas-grekas
authored andcommitted
Fix type binding
1 parent b3347b3 commit 068e688

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/RegisterControllerArgumentLocatorsPass.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ public function process(ContainerBuilder $container)
151151
$args[$p->name] = $bindingValue;
152152
}
153153

154+
continue;
155+
} elseif (!$type || !$autowire || '\\' !== $target[0]) {
154156
continue;
155157
} elseif (is_subclass_of($type, \UnitEnum::class)) {
156158
// do not attempt to register enum typed arguments if not already present in bindings
157159
continue;
158-
} elseif (!$type || !$autowire || '\\' !== $target[0]) {
159-
continue;
160160
} elseif (!$p->allowsNull()) {
161161
$invalidBehavior = ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE;
162162
}

0 commit comments

Comments
 (0)