Skip to content

Commit

Permalink
[BUGFIX] Fix some php stan errors
Browse files Browse the repository at this point in the history
Related #1120
  • Loading branch information
kanow committed Aug 20, 2024
1 parent 3c240fe commit 73b8069
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Classes/Command/CreateTestDataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class CreateTestDataCommand extends Command
'description' => 'I love that tea!',
'sys_language_uid' => 0,
],
[
[
'title' => 'Earl Grey',
'description' => 'A nice tea!',
'sys_language_uid' => 0,
Expand All @@ -54,7 +54,8 @@ protected function configure(): void

protected function execute(InputInterface $input, OutputInterface $output): int
{
$pageUid = (int)$input->getArgument('pageUid') ?? 0;
$pageUid = $input->getArgument('pageUid') ?? 0;
\assert(\is_int($pageUid));
$deleteDataBefore = $input->getOption('delete-data-before') ?? false;
\assert(\is_bool($deleteDataBefore));
$table = 'tx_tea_domain_model_tea';
Expand All @@ -77,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln(sprintf('Test data in page %s created.', $pageUid));

$referenceIndex = GeneralUtility::makeInstance(ReferenceIndex::class);
$referenceIndex->updateIndex(0);
$referenceIndex->updateIndex(false);
$output->writeln('Reference index updated.');

return Command::SUCCESS;
Expand Down

0 comments on commit 73b8069

Please sign in to comment.