Your project should not use invalid parameter and return typehints
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_typehint
- defaults: [
- '_format' => 'json',
- ],
- methods: 'GET'
- )]
- public function __invoke(ParameterBagInterface $parameterBag, Packages $assetPackage): Response
- {
- // Not return directly the json response, but render a template [for translation].
- return $this->render('@EnabelLayout/favicon/site.webmanifest.json.twig', [
- 'manifest' => [
- 'name' => $parameterBag->get('enabel_layout.application_name'),
Text files should end with a valid new line character.
- Read doc
- Productivity
- Info
More information: https://insight.symfony.com/what-we-analyse/missing_e_o_l
- tags: [ 'controller.service_arguments' ]
- Enabel\LayoutBundle\Twig\Extension\LocalesExtension:
- arguments:
- $supportedLocales: '%enabel_layout.supported_locales%'
- tags: [ 'twig.extension' ]