File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public function getConfigTreeBuilder(): TreeBuilder
6161 ->end ()
6262 ->validate ()
6363 ->ifTrue (static function (array $ paths ): bool {
64- if (1 === \count ($ paths )) {
64+ if (1 === \count ($ paths ) || ! array_is_list ( $ paths ) ) {
6565 return false ;
6666 }
6767
Original file line number Diff line number Diff line change @@ -47,6 +47,18 @@ public function testMultipleSassRootPaths(): void
4747 ]);
4848 }
4949
50+ public function testMultipleSassRootPathsWithIdentifier (): void
51+ {
52+ $ this ->assertConfigurationIsValid ([
53+ 'symfonycasts_sass ' => [
54+ 'root_sass ' => [
55+ 'website ' => '%kernel.project_dir%/assets/scss/app.scss ' ,
56+ 'admin ' => '%kernel.project_dir%/assets/admin/scss/app.scss ' ,
57+ ],
58+ ],
59+ ]);
60+ }
61+
5062 public function testMultipleSassRootPathsWithSameFilename (): void
5163 {
5264 $ this ->assertConfigurationIsInvalid ([
You can’t perform that action at this time.
0 commit comments