Skip to content

Commit f9e6857

Browse files
fix: disable product indexing checker hint for versions <6.6.10.5
1 parent aad1adc commit f9e6857

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Components/Health/Checker/PerformanceChecker/ProductStreamIndexingChecker.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Frosh\Tools\Components\Health\Checker\PerformanceChecker;
66

7+
use Composer\Semver\Semver;
78
use Frosh\Tools\Components\Health\Checker\CheckerInterface;
89
use Frosh\Tools\Components\Health\HealthCollection;
910
use Frosh\Tools\Components\Health\SettingsResult;
@@ -14,11 +15,18 @@ class ProductStreamIndexingChecker implements PerformanceCheckerInterface, Check
1415
public function __construct(
1516
#[Autowire(param: 'shopware.product_stream.indexing')]
1617
private readonly bool $productStreamIndexingEnabled,
18+
#[Autowire(param: 'kernel.shopware_version')]
19+
private readonly string $shopwareVersion,
1720
) {
1821
}
1922

2023
public function collect(HealthCollection $collection): void
2124
{
25+
// https://github.com/FriendsOfShopware/FroshTools/issues/342#issuecomment-2865874897
26+
if (!Semver::satisfies($this->shopwareVersion, '>=6.6.10.5')) {
27+
return;
28+
}
29+
2230
if ($this->productStreamIndexingEnabled) {
2331
$collection->add(
2432
SettingsResult::info(

0 commit comments

Comments
 (0)