It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
It seems like $container->get(Symfony\...on\RequestStack::class) can also be of type null; however, parameter $requestStack of Webfactory\ShortcodeBund...stHelper::__construct() does only seem to accept Symfony\Component\HttpFoundation\RequestStack, 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
28
return new self($container->get(Processor::class), /** @scrutinizer ignore-type */ $container->get(RequestStack::class));
It seems like $container->get(Thunder\...essor\Processor::class) can also be of type null; however, parameter $processor of Webfactory\ShortcodeBund...stHelper::__construct() does only seem to accept Thunder\Shortcode\Processor\Processor, 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
28
return new self(/** @scrutinizer ignore-type */ $container->get(Processor::class), $container->get(RequestStack::class));
Loading history...
29
}
30
31
public function __construct(Processor $processor, RequestStack $requestStack)
32
{
33
$this->processor = $processor;
34
$this->requestStack = $requestStack;
35
}
36
37
public function processShortcode(string $shortcode): string
38
{
39
// The fragment handler used by EmbeddedShortcodeHandler requires a request to be active, so let's make sure that is the case
40
if (null === $this->requestStack->getCurrentRequest()) {