Skip to content

Commit

Permalink
Merge pull request #8 from ho-nl/php-upgrade
Browse files Browse the repository at this point in the history
upgrade module for 8.1
  • Loading branch information
wimvdputten authored Nov 28, 2022
2 parents a867f99 + 27a146b commit 8c70258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reach-digital/magento2-betterindexers",
"require": {
"php": "~7.1.3||~7.2.0||~7.3.0||~7.4.0",
"php": "~7.1.3||~7.2.0||~7.3.0||~7.4.0||~8.1.0",
"magento/framework": "~102.0|~103.0"
},
"type": "magento2-module",
Expand Down
4 changes: 2 additions & 2 deletions src/IndexerReindexCommandPreference.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($this->getIndexers($input) as $indexer) {
try {
$this->validateIndexerStatus($indexer);
$startTime = microtime(true);
$startTime = intval(microtime(true));
$output->writeln('Rebuilding ' . $indexer->getTitle() . ' index at ' . gmdate('H:i:s', $startTime));
$indexerConfig = $this->getConfig()->getIndexer($indexer->getId());
$sharedIndex = $indexerConfig['shared_index'];
Expand All @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->validateSharedIndex($sharedIndex);
}
}
$resultTime = microtime(true) - $startTime;
$resultTime = intval(microtime(true) - $startTime);
$output->writeln(
' > ' .
$indexer->getTitle() .
Expand Down

0 comments on commit 8c70258

Please sign in to comment.