CI: psalm suppress ServiceNotFound error for Glide

pull/5028/head
Angel Fernando Quiroz Campos 11 months ago
parent 00d9316d5f
commit a8d56b5a21
  1. 10
      src/CoreBundle/Traits/ControllerTrait.php

@ -29,7 +29,9 @@ use Chamilo\CourseBundle\Repository\CStudentPublicationCorrectionRepository;
use Chamilo\CourseBundle\Repository\CStudentPublicationRepository;
use Chamilo\CourseBundle\Repository\CToolRepository;
use Chamilo\LtiBundle\Repository\ExternalToolRepository;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Sylius\Bundle\SettingsBundle\Form\Factory\SettingsFormFactory;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
@ -109,10 +111,14 @@ trait ControllerTrait
}
/**
* @return Glide
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
public function getGlide()
public function getGlide(): Glide
{
/**
* @psalm-suppress ServiceNotFound
*/
return $this->container->get('glide');
}

Loading…
Cancel
Save