diff --git a/Classes/Command/CheckLinksCommand.php b/Classes/Command/CheckLinksCommand.php index 79593ab5f..2789974b3 100644 --- a/Classes/Command/CheckLinksCommand.php +++ b/Classes/Command/CheckLinksCommand.php @@ -179,7 +179,16 @@ protected function execute(InputInterface $input, OutputInterface $output): int return 1; } - $this->depth = (int)($input->getOption('depth') ?: -1); + /** + * @var string|null $depthOption + */ + $depthOption = $input->getOption('depth'); + if ($depthOption !== null) { + $this->depth = (int)($depthOption); + } else { + $this->depth = -1; + } + $this->sendTo = $input->getOption('to') ?: ''; foreach ($startPages as $pageId) { diff --git a/Documentation/Changelog/Index.rst b/Documentation/Changelog/Index.rst index 791fdc7a4..5f8ff342e 100644 --- a/Documentation/Changelog/Index.rst +++ b/Documentation/Changelog/Index.rst @@ -9,9 +9,12 @@ Changelog 2.1.1 ===== -* Fix version constraints (in ext_emconf.php) +* Fix setting of depth=0 via CLI command brofix:checklinks + (issue:`69 `__) * Fix fatal error: Exception was thrown on CLI command checklinks if replytoemail was set (due to call to not existing function). + (issue:`68 `__) +* Fix version constraints (in ext_emconf.php) 2.1.0 =====