You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/AssetMapper/ImportMap/ImportMapConfigReader.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,22 +47,22 @@ public function getEntries(): ImportMapEntries
47
47
$isEntry = $data['entrypoint'] ?? false;
48
48
49
49
if ($isEntry && ImportMapType::JS !== $type) {
50
-
thrownewRuntimeException(sprintf('The "entrypoint" option can only be used with the "js" type. Found in importmap.php for key "%s"', $importName));
50
+
thrownewRuntimeException(sprintf('The "entrypoint" option can only be used with the "js" type. Found in importmap.php for key "%s".', $importName));
51
51
}
52
52
53
53
$preload = null;
54
54
// render_link_tag is an alias for preload for CSS type
55
55
if (isset($data['render_link_tag'])) {
56
56
if (ImportMapType::CSS !== $type) {
57
-
thrownewRuntimeException(sprintf('The "render_link_tag" option can only be used with the "css" type. Found in importmap.php for key "%s"', $importName));
57
+
thrownewRuntimeException(sprintf('The "render_link_tag" option can only be used with the "css" type. Found in importmap.php for key "%s".', $importName));
58
58
}
59
59
60
60
$preload = $data['render_link_tag'];
61
61
}
62
62
63
63
if (isset($data['preload'])) {
64
64
if (ImportMapType::JS !== $type) {
65
-
thrownewRuntimeException(sprintf('The "preload" option can only be used with the "js" type. Found in importmap.php for key "%s"', $importName));
65
+
thrownewRuntimeException(sprintf('The "preload" option can only be used with the "js" type. Found in importmap.php for key "%s".', $importName));
0 commit comments