Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52ef950

Browse files
committed
Remove useless condition.
1 parent cb789b3 commit 52ef950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/ServiceValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function supports(Request $request, ArgumentMetadata $argument)
4747
$controller = ltrim($controller, '\\');
4848
}
4949

50-
return \is_string($controller) && $this->container->has($controller) && $this->container->get($controller)->has($argument->getName());
50+
return $this->container->has($controller) && $this->container->get($controller)->has($argument->getName());
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)