Fixed PHPstan issue

This commit is contained in:
Jan Böhmer 2026-02-08 19:37:44 +01:00
parent 90c82aab2e
commit f95e39748e
4 changed files with 4 additions and 4 deletions

View file

@ -149,6 +149,7 @@ class ReicheltProvider implements InfoProviderInterface
$priceString = $dom->filter('meta[itemprop="price"]')->attr('content');
$currency = $dom->filter('meta[itemprop="priceCurrency"]')->attr('content', 'EUR');
$gtin = null;
foreach (['gtin13', 'gtin14', 'gtin12', 'gtin8'] as $gtinType) {
if ($dom->filter("[itemprop=\"$gtinType\"]")->count() > 0) {
$gtin = $dom->filter("[itemprop=\"$gtinType\"]")->innerText();