Skip to content

Commit 5ae3655

Browse files
pavol-tukaGromNaN
authored andcommitted
[FrameworkBundle] Avoid calling rtrim(null, '/') in AssetsInstallCommand
1 parent a632944 commit 5ae3655

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Command/AssetsInstallCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9999
{
100100
/** @var KernelInterface $kernel */
101101
$kernel = $this->getApplication()->getKernel();
102-
$targetArg = rtrim($input->getArgument('target'), '/');
103-
102+
$targetArg = rtrim($input->getArgument('target') ?? '', '/');
104103
if (!$targetArg) {
105104
$targetArg = $this->getPublicDirectory($kernel->getContainer());
106105
}

0 commit comments

Comments
 (0)