Skip to content

Commit

Permalink
[FrameworkBundle] Avoid calling rtrim(null, '/') in AssetsInstallCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
pavol-tuka authored and GromNaN committed Jan 12, 2022
1 parent a632944 commit 5ae3655
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Command/AssetsInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
{
/** @var KernelInterface $kernel */
$kernel = $this->getApplication()->getKernel();
$targetArg = rtrim($input->getArgument('target'), '/');

$targetArg = rtrim($input->getArgument('target') ?? '', '/');
if (!$targetArg) {
$targetArg = $this->getPublicDirectory($kernel->getContainer());
}
Expand Down

0 comments on commit 5ae3655

Please sign in to comment.