Skip to content

Commit 4ca59ff

Browse files
committed
Feedback about BC layer
1 parent 97354d5 commit 4ca59ff

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

UPGRADE-7.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ VarDumper
113113
AssetMapper
114114
-----------
115115

116-
* Deprecated passing null to `ImportMapRequireCommand` constructor argument `projectDir`
116+
* Deprecate passing null to `ImportMapRequireCommand` constructor argument `projectDir`

src/Symfony/Component/AssetMapper/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CHANGELOG
66

77
* Add support for pre-compressing assets with Brotli, Zstandard, Zopfli, and gzip
88
* Add option `--dry-run` to `importmap:require` command
9-
* Deprecated passing null to `ImportMapRequireCommand` constructor argument `projectDir`
9+
* Deprecate passing null to `ImportMapRequireCommand` constructor argument `projectDir`
1010

1111
7.2
1212
---

src/Symfony/Component/AssetMapper/Command/ImportMapRequireCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
149149
array_map(fn (ImportMapEntry $package): array => [
150150
$package->importName,
151151
$package->version ?? '-',
152-
// BC layer for FrameworkBundle < 7.3
153-
// When projectDir is not set, we use the absolute path of the package
154-
isset($this->projectDir) ? Path::makeRelative($package->path, $this->projectDir) : $package->path,
152+
// BC layer for AssetMapper < 7.3
153+
// When `projectDir` is not null, we use the absolute path of the package
154+
null !== $this->projectDir ? Path::makeRelative($package->path, $this->projectDir) : $package->path,
155155
], $newPackages),
156156
);
157157
}

0 commit comments

Comments
 (0)