Skip to content

Commit 590aaeb

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ class ProductStreamIndexingChecker implements PerformanceCheckerInterface, Check
1414
public function __construct(
1515
#[Autowire(param: 'shopware.product_stream.indexing')]
1616
private readonly bool $productStreamIndexingEnabled,
17+
#[Autowire(param: 'kernel.shopware_version')]
18+
private readonly string $shopwareVersion,
1719
) {
1820
}
1921

2022
public function collect(HealthCollection $collection): void
2123
{
24+
// https://github.com/FriendsOfShopware/FroshTools/issues/342#issuecomment-2865874897
25+
if (\version_compare('6.6.10.5', $this->shopwareVersion, '>')) {
26+
return;
27+
}
28+
2229
if ($this->productStreamIndexingEnabled) {
2330
$collection->add(
2431
SettingsResult::info(

0 commit comments

Comments
 (0)