Skip to content

Commit

Permalink
Simplify sass_root config for to allow array (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
makraz authored Jan 5, 2024
1 parent 7871b49 commit 7184c2a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/DependencyInjection/SymfonycastsSassExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->children()
->arrayNode('root_sass')
->info('Path to your Sass root file')
->beforeNormalization()
->ifTrue(fn ($v) => \is_string($v))
->then(fn ($v) => [$v])
->end()
->beforeNormalization()->castToArray()->end()
->cannotBeEmpty()
->scalarPrototype()
->end()
Expand Down

0 comments on commit 7184c2a

Please sign in to comment.