Skip to content

Commit

Permalink
phpstan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Feb 6, 2025
1 parent 95699d1 commit bd399b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/feedme/fields/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public function parseField(): mixed
$columnName = $match;

if (Craft::$app->getFields()->getFieldByHandle($match)) {
$columnName = Craft::$app->getFields()->oldFieldColumnPrefix . $match;
$prefix = property_exists(Craft::$app->getFields(), 'oldFieldColumnPrefix') ? Craft::$app->getFields()->oldFieldColumnPrefix : '';
$columnName = $prefix . $match;
}

$query = ProductElement::find();
Expand Down

0 comments on commit bd399b3

Please sign in to comment.