Your project should not use invalid parameter and return typehints

More information: https://insight.symfony.com/what-we-analyse/php.invalid_typehint

  1. defaults: [
  2. '_format' => 'json',
  3. ],
  4. methods: 'GET'
  5. )]
  6. public function __invoke(ParameterBagInterface $parameterBag, Packages $assetPackage): Response

    Parameter $assetPackage of method Enabel\LayoutBundle\Controller\Favicon\WebmanifestAction::__invoke() has invalid type Symfony\Component\Asset\Packages.

    Time to fix: about 9 minutes
    Read doc Open Issue Permalink
    Last edited by Damien Lagae
  7. {
  8. // Not return directly the json response, but render a template [for translation].
  9. return $this->render('@EnabelLayout/favicon/site.webmanifest.json.twig', [
  10. 'manifest' => [
  11. 'name' => $parameterBag->get('enabel_layout.application_name'),

Text files should end with a valid new line character.

More information: https://insight.symfony.com/what-we-analyse/missing_e_o_l

in config/services.yaml, line 35
  1. tags: [ 'controller.service_arguments' ]
  2. Enabel\LayoutBundle\Twig\Extension\LocalesExtension:
  3. arguments:
  4. $supportedLocales: '%enabel_layout.supported_locales%'
  5. tags: [ 'twig.extension' ]

    This file ends with no newline character, or with a different newline character than other files in your project. It won't render properly on a terminal, and it's considered a bad practice.

    Time to fix: about 15 minutes
    Read doc Open Issue Permalink
    Last edited by Olivier Maloteau