Skip to content

Commit 4ae4987

Browse files
committed
bug #1792 [Icons] Fix warning when Iconset license URL is null (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Icons] Fix warning when Iconset license URL is null Fix #1785 Commits ------- 017a8db [Icons] Fix warning when Iconset license URL is null
2 parents 32c222b + 017a8db commit 4ae4987

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Icons/src/Command/ImportIconCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8787
" <fg=bright-green;options=bold>✓</> Imported <fg=bright-white;bg=black>%s:</><fg=bright-magenta;bg=black;options>%s</> (License: <href=%s>%s</>). Render with: <comment>{{ ux_icon('%s') }}</comment>",
8888
$prefix,
8989
$name,
90-
$license['url'],
90+
$license['url'] ?? '#',
9191
$license['title'],
9292
$fullName,
9393
));

src/Icons/src/Command/LockIconsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8888
" <fg=bright-green;options=bold>✓</> Imported <fg=bright-white;bg=black>%s:</><fg=bright-magenta;bg=black;options>%s</> (License: <href=%s>%s</>). Render with: <comment>{{ ux_icon('%s') }}</comment>",
8989
$prefix,
9090
$name,
91-
$license['url'],
91+
$license['url'] ?? '#',
9292
$license['title'],
9393
$icon,
9494
));

0 commit comments

Comments
 (0)