It seems like $container->getParameter...:HTTP_CLIENT_PARAMETER) can also be of type array; however, parameter $id of Symfony\Component\Depend...ContainerBuilder::has() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
20
if (!$container->has(/** @scrutinizer ignore-type */ $container->getParameter(self::HTTP_CLIENT_PARAMETER))) {
Loading history...
21
throw new ServiceNotFoundException($container->getParameter(self::HTTP_CLIENT_PARAMETER));
It seems like $container->getParameter...:HTTP_CLIENT_PARAMETER) can also be of type array; however, parameter $id of Symfony\Component\Depend...inerBuilder::setAlias() does only seem to accept Symfony\Component\DependencyInjection\Alias|string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation