Skip to content

Commit 017a8db

Browse files
committed
[Icons] Fix warning when Iconset license URL is null
Fix #1785
1 parent ef3ddc7 commit 017a8db

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)