Skip to content

Commit e54c1a6

Browse files
author
Iltar van der Berg
committed
Fixed a redundant check in DefaultValueResolver
1 parent 39df9e4 commit e54c1a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/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)