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
61
61
->end ()
62
62
->validate ()
63
63
->ifTrue (static function (array $ paths ): bool {
64
- if (1 === \count ($ paths )) {
64
+ if (1 === \count ($ paths ) || ! array_is_list ( $ paths ) ) {
65
65
return false ;
66
66
}
67
67
Original file line number Diff line number Diff line change @@ -47,6 +47,18 @@ public function testMultipleSassRootPaths(): void
47
47
]);
48
48
}
49
49
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
+
50
62
public function testMultipleSassRootPathsWithSameFilename (): void
51
63
{
52
64
$ this ->assertConfigurationIsInvalid ([
You can’t perform that action at this time.
0 commit comments