Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 467ac15

Browse files
committed
Feedback about BC layer
1 parent 97354d5 commit 467ac15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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/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)