diff --git a/src/bundle/DependencyInjection/Compiler/KernelOverridePass.php b/src/bundle/DependencyInjection/Compiler/KernelOverridePass.php index f40df5c..aab5f28 100644 --- a/src/bundle/DependencyInjection/Compiler/KernelOverridePass.php +++ b/src/bundle/DependencyInjection/Compiler/KernelOverridePass.php @@ -45,7 +45,7 @@ public function process(ContainerBuilder $container): void * * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container */ - private function setStandardThemeDirectories(ContainerBuilder $container) + private function setStandardThemeDirectories(ContainerBuilder $container): void { if (!$container->hasParameter('kernel.bundles_metadata')) { return; @@ -57,6 +57,7 @@ private function setStandardThemeDirectories(ContainerBuilder $container) return; } + /** @var array $templatesPathMap */ $templatesPathMap = $container->hasParameter('ibexa.design.templates.path_map') ? $container->getParameter('ibexa.design.templates.path_map') : []; diff --git a/src/bundle/DependencyInjection/Compiler/StandardThemePass.php b/src/bundle/DependencyInjection/Compiler/StandardThemePass.php index 2dd0cd7..4042bdc 100644 --- a/src/bundle/DependencyInjection/Compiler/StandardThemePass.php +++ b/src/bundle/DependencyInjection/Compiler/StandardThemePass.php @@ -28,9 +28,10 @@ public function process(ContainerBuilder $container): void return; } + /** @var array $designList */ $designList = $container->getParameter('ibexa.design.list'); foreach ($designList as $designName => $themes) { - if (!in_array('standard', $themes)) { + if (!in_array('standard', $themes, true)) { $designList[$designName][] = 'standard'; } } diff --git a/src/bundle/DependencyInjection/IbexaStandardDesignExtension.php b/src/bundle/DependencyInjection/IbexaStandardDesignExtension.php index b8fe137..b1fc9d2 100644 --- a/src/bundle/DependencyInjection/IbexaStandardDesignExtension.php +++ b/src/bundle/DependencyInjection/IbexaStandardDesignExtension.php @@ -16,9 +16,9 @@ class IbexaStandardDesignExtension extends Extension implements PrependExtensionInterface { - public const EXTENSION_NAME = 'ibexa_standard_design'; + public const string EXTENSION_NAME = 'ibexa_standard_design'; - public const OVERRIDE_KERNEL_TEMPLATES_PARAM_NAME = 'ibexa.design.standard.override_kernel_templates'; + public const string OVERRIDE_KERNEL_TEMPLATES_PARAM_NAME = 'ibexa.design.standard.override_kernel_templates'; public function getAlias(): string {