Skip to content

Commit aa7c65e

Browse files
committed
fabbot
1 parent cd1d6ac commit aa7c65e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/AssetMapper/ImportMap/ImportMapConfigReader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,22 @@ public function getEntries(): ImportMapEntries
4747
$isEntry = $data['entrypoint'] ?? false;
4848

4949
if ($isEntry && ImportMapType::JS !== $type) {
50-
throw new RuntimeException(sprintf('The "entrypoint" option can only be used with the "js" type. Found in importmap.php for key "%s"', $importName));
50+
throw new RuntimeException(sprintf('The "entrypoint" option can only be used with the "js" type. Found in importmap.php for key "%s".', $importName));
5151
}
5252

5353
$preload = null;
5454
// render_link_tag is an alias for preload for CSS type
5555
if (isset($data['render_link_tag'])) {
5656
if (ImportMapType::CSS !== $type) {
57-
throw new RuntimeException(sprintf('The "render_link_tag" option can only be used with the "css" type. Found in importmap.php for key "%s"', $importName));
57+
throw new RuntimeException(sprintf('The "render_link_tag" option can only be used with the "css" type. Found in importmap.php for key "%s".', $importName));
5858
}
5959

6060
$preload = $data['render_link_tag'];
6161
}
6262

6363
if (isset($data['preload'])) {
6464
if (ImportMapType::JS !== $type) {
65-
throw new RuntimeException(sprintf('The "preload" option can only be used with the "js" type. Found in importmap.php for key "%s"', $importName));
65+
throw new RuntimeException(sprintf('The "preload" option can only be used with the "js" type. Found in importmap.php for key "%s".', $importName));
6666
}
6767

6868
$preload = $data['preload'];

src/Symfony/Component/AssetMapper/Tests/Command/AssetMapperCompileCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function testEventIsDispatched()
115115
$application = new Application($this->kernel);
116116
$container = $this->kernel->getContainer();
117117
$dispatcher = $container->get('event_dispatcher');
118-
assert($dispatcher instanceof EventDispatcherInterface);
118+
\assert($dispatcher instanceof EventDispatcherInterface);
119119

120120
$listenerCalled = false;
121121
$dispatcher->addListener(BeforeAssetsCompileEvent::class, function (BeforeAssetsCompileEvent $event) use (&$listenerCalled) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy