The expression return $this->client->getContainer() could return the type null which is incompatible with the type-hinted return Symfony\Component\Depend...tion\ContainerInterface. Consider adding an additional type-check to rule them out.
The expression return $this->getContainer()->get('doctrine') could return the type null which is incompatible with the type-hinted return Doctrine\Bundle\DoctrineBundle\Registry. Consider adding an additional type-check to rule them out.