Skip to content

Commit

Permalink
Set debug mode to false if service is not set (#10872)
Browse files Browse the repository at this point in the history
FRW-1322 [ExternalPR] Fixed define Twig debug mode options.
  • Loading branch information
spryker-release-bot authored Mar 19, 2024
1 parent edb5f32 commit aed418c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function extendTwig(Environment $twig, ContainerInterface $container):
*/
protected function getTwigOptions(ContainerInterface $container): array
{
$isDebugOn = $container->get(static::SERVICE_DEBUG);
$isDebugOn = $container->has(static::SERVICE_DEBUG) && $container->get(static::SERVICE_DEBUG);
$twigOptions = $this->getConfig()->getTwigOptions();
$globalOptions = [
'charset' => $container->get(static::SERVICE_CHARSET),
Expand Down

0 comments on commit aed418c

Please sign in to comment.