Skip to content

Commit d35c685

Browse files
author
Iltar van der Berg
committed
Fixed a redundant check in DefaultValueResolver
1 parent 7f66267 commit d35c685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/ArgumentResolver/DefaultValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class DefaultValueResolver implements ArgumentValueResolverInterface
2727
*/
2828
public function supports(Request $request, ArgumentMetadata $argument)
2929
{
30-
return $argument->hasDefaultValue() && !$request->attributes->has($argument->getName());
30+
return $argument->hasDefaultValue();
3131
}
3232

3333
/**

0 commit comments

Comments
 (0)