Skip to content

Commit 15580f6

Browse files
committed
Remove unnecessary call to array_values
1 parent 9a21b86 commit 15580f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Commands/GenerateConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5353
try {
5454
/** @var string|null $fileName */
5555
$fileName = is_string($input->getOption('filename')) ? $input->getOption('filename') : null;
56-
$this->allowedLicensesParser->writeConfiguration(array_values($usedLicenses), $fileName);
56+
$this->allowedLicensesParser->writeConfiguration($usedLicenses, $fileName);
5757
$io->success('Configuration file successfully written');
5858
} catch (ConfigurationExists $e) {
5959
$io->error('The configuration file already exists. Please remove it before generating a new one.');

0 commit comments

Comments
 (0)