Skip to content

Commit

Permalink
Style(web-twig): Cast type of variable used in foreach loop
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Aug 12, 2022
1 parent ecc110b commit 434affb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ public function process(ContainerBuilder $container): void

/** @var array<string> $paths */
$paths = $container->getParameter(SpiritWebTwigExtension::PARAMETER_PATHS);
/** @var string $pathAlias */
$pathAlias = $container->getParameter(SpiritWebTwigExtension::PARAMETER_PATH_ALIAS);
$isLexer = $container->getParameter(SpiritWebTwigExtension::PARAMETER_HTML_SYNTAX_LEXER);
$classPrefix = $container->getParameter(SpiritWebTwigExtension::PARAMETER_SPIRIT_CSS_CLASS_PREFIX);
/** @var array<string> $iconsPaths */
$iconsPaths = $container->getParameter(SpiritWebTwigExtension::PARAMETER_ICONS_PATHS);
/** @var string $iconsPathAlias */
$iconsPathAlias = $container->getParameter(SpiritWebTwigExtension::PARAMETER_ICONS_PATH_ALIAS);

$this->addGlobPath($twigLoaderDefinition, SpiritWebTwigExtension::DEFAULT_PARTIALS_PATH, SpiritWebTwigExtension::DEFAULT_PARTIALS_ALIAS);
Expand Down

0 comments on commit 434affb

Please sign in to comment.