File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,18 @@ public function getConfigTreeBuilder(): TreeBuilder
3737
3838 $ rootNode
3939 ->children ()
40- ->scalarNode ('theme ' )->isRequired ()->end ()
41- ->scalarNode ('icon_theme ' )->isRequired ()->end ()
40+ ->scalarNode ('theme ' )->isRequired () // @legacy SF < 7.2 (string node introduced in Symfony 7.2)
41+ ->validate ()
42+ ->ifTrue (static fn (mixed $ value ) => !\is_string ($ value ))
43+ ->thenInvalid ('Invalid theme ' )
44+ ->end ()
45+ ->end ()
46+ ->scalarNode ('icon_theme ' )->isRequired () // @legacy SF < 7.2 (string node introduced in Symfony 7.2)
47+ ->validate ()
48+ ->ifTrue (static fn (mixed $ value ) => !\is_string ($ value ))
49+ ->thenInvalid ('icon_theme ' )
50+ ->end ()
51+ ->end ()
4252 ->arrayNode ('twig_functions_configuration ' )
4353 ->treatNullLike ([])
4454 ->prototype ('variable ' )->end ()
You can’t perform that action at this time.
0 commit comments