Skip to content

Commit e45dcba

Browse files
committed
Merge pull request #648 from entering/param-fetcher-listener-change-operator-and
At Param fetch listener replace the and operator use with &&
2 parents 468a773 + 9507961 commit e45dcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/ParamFetcherListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function onKernelController(FilterControllerEvent $event)
5959
if ($this->setParamsAsAttributes) {
6060
$params = $paramFetcher->all();
6161
foreach ($params as $name => $param) {
62-
if ($request->attributes->has($name) and null !== $request->attributes->get($name)) {
62+
if ($request->attributes->has($name) && null !== $request->attributes->get($name)) {
6363
$msg = sprintf("ParamFetcher parameter conflicts with a path parameter '$name' for route '%s'", $request->attributes->get('_route'));
6464
throw new \InvalidArgumentException($msg);
6565
}

0 commit comments

Comments
 (0)