Skip to content

Commit 1418926

Browse files
committed
Apply fabbot patch
1 parent 6f54bc2 commit 1418926

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/PackageJsonSynchronizer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ private function updateImportMap(array $importMapEntries): void
269269
}
270270

271271
$arguments = [];
272-
if (isset($importMapEntry['entrypoint']) && $importMapEntry['entrypoint'] === true) {
272+
if (isset($importMapEntry['entrypoint']) && true === $importMapEntry['entrypoint']) {
273273
$arguments[] = '--entrypoint';
274274
}
275275

tests/PackageJsonSynchronizerTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public function testSynchronizeAssetMapperNewPackage()
330330
->withConsecutive(
331331
['symfony-cmd', 'importmap:require', ['@hotcake/foo@^1.9.0']],
332332
['symfony-cmd', 'importmap:require', ['@symfony/new-package', '--path='.$fileModulePath]],
333-
['symfony-cmd', 'importmap:require', ['--entrypoint','@symfony/new-package/entry.js', '--path='.$entrypointPath]]
333+
['symfony-cmd', 'importmap:require', ['--entrypoint', '@symfony/new-package/entry.js', '--path='.$entrypointPath]]
334334
);
335335

336336
$this->synchronizer->synchronize([
@@ -409,7 +409,7 @@ public function testSynchronizeAssetMapperUpgradesPackageIfNeeded()
409409
->withConsecutive(
410410
['symfony-cmd', 'importmap:require', ['@hotcake/foo@^1.9.0']],
411411
['symfony-cmd', 'importmap:require', ['@symfony/new-package', '--path='.$fileModulePath]],
412-
['symfony-cmd', 'importmap:require', ['--entrypoint','@symfony/new-package/entry.js', '--path='.$entrypointPath]]
412+
['symfony-cmd', 'importmap:require', ['--entrypoint', '@symfony/new-package/entry.js', '--path='.$entrypointPath]]
413413
);
414414

415415
$this->synchronizer->synchronize([
@@ -437,7 +437,7 @@ public function testSynchronizeAssetMapperSkipsUpgradeIfAlreadySatisfied()
437437
->method('execute')
438438
->withConsecutive(
439439
['symfony-cmd', 'importmap:require', ['@symfony/new-package', '--path='.$fileModulePath]],
440-
['symfony-cmd', 'importmap:require', ['--entrypoint','@symfony/new-package/entry.js', '--path='.$entrypointPath]]
440+
['symfony-cmd', 'importmap:require', ['--entrypoint', '@symfony/new-package/entry.js', '--path='.$entrypointPath]]
441441
);
442442

443443
$this->synchronizer->synchronize([

0 commit comments

Comments
 (0)