Skip to content

Commit 22ae8cd

Browse files
authored
Merge pull request #96 from hostep/fix-strict-type-checking
This id should be an integer instead of string since we do strict typ…
2 parents a3dd257 + 1db18c4 commit 22ae8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Command/RegenerateCategoryUrlCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
114114
$rootIdOption = (int)$input->getOption('root') ?: false;
115115

116116
foreach ($stores as $storeId) {
117-
$currentRootId = $this->storeManager->getGroup(
117+
$currentRootId = (int)$this->storeManager->getGroup(
118118
$this->storeManager->getStore($storeId)->getStoreGroupId()
119119
)->getRootCategoryId();
120120
if ($rootIdOption !== false) {

0 commit comments

Comments
 (0)