Skip to content

Commit b7ff755

Browse files
committed
Fixed tests
1 parent 98cdb3e commit b7ff755

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Bridge/Nette/DI/AssetExtension.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public function getConfigSchema(): Schema
5353
'json_manifest_path' => Expect::string()
5454
->nullable(),
5555
'strict_mode' => Expect::bool(FALSE),
56-
])->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
56+
])->castTo(PackageConfig::class)
57+
->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
5758
->assert($assertVersionStrategyAndVersionCombination, 'You cannot use both \'version_strategy\' and \'version\' at the same time.')
5859
->assert($assertVersionStrategyAndJsonManifestPathCombination, 'You cannot use both \'version_strategy\' and \'json_manifest_path\' at the same time.')
59-
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.')
60-
->castTo(PackageConfig::class);
60+
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.');
6161

6262
return Expect::structure([
6363
'base_path' => Expect::string(''),
@@ -75,11 +75,11 @@ public function getConfigSchema(): Schema
7575
->nullable(),
7676
'strict_mode' => Expect::bool(FALSE),
7777
'packages' => Expect::arrayOf($packageStructure, 'string'),
78-
])->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
78+
])->castTo(AssetConfig::class)
79+
->assert($assertBasePathAndBaseUrlsCombination, 'You cannot use both \'base_path\' and \'base_urls\' at the same time.')
7980
->assert($assertVersionStrategyAndVersionCombination, 'You cannot use both \'version_strategy\' and \'version\' at the same time.')
8081
->assert($assertVersionStrategyAndJsonManifestPathCombination, 'You cannot use both \'version_strategy\' and \'json_manifest_path\' at the same time.')
81-
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.')
82-
->castTo(AssetConfig::class);
82+
->assert($assertVersionAndJsonManifestPathCombination, 'You cannot use both \'version\' and \'json_manifest_path\' at the same time.');
8383
}
8484

8585
public function loadConfiguration(): void

0 commit comments

Comments
 (0)