Skip to content

Commit f1e261d

Browse files
committed
small fixes [#4]
1 parent 9c0cfb1 commit f1e261d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Console/Command/DumpCmsData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function configure()
6666
protected function execute(InputInterface $input, OutputInterface $output): void
6767
{
6868
$type = $input->getOption(self::INPUT_KEY_TYPE);
69-
$removeAll = $input->getOption(self::INPUT_KEY_REMOVE_ALL);
69+
$removeAll = (bool)$input->getOption(self::INPUT_KEY_REMOVE_ALL);
7070
if ($type === null) {
7171
throw new \RuntimeException("Type ([-t|--type) is required");
7272
}

Model/Service/DumpCmsDataService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(
4949
$this->categoryList = $categoryList;
5050
}
5151

52-
public function execute(array $types, ?array $identifiers, ?bool $removeAll)
52+
public function execute(array $types, ?array $identifiers, bool $removeAll)
5353
{
5454
$varDirectory = $this->filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
5555
$varPath = $this->directoryList->getPath(DirectoryList::VAR_DIR);

0 commit comments

Comments
 (0)