Skip to content

Commit

Permalink
PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Sep 28, 2024
1 parent b6e792b commit 857709e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/core/Mage/Eav/Model/Config/Source/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public function toOptionArray(string $entity = ''): array
if ($node === false) {
return [];
}

$forms = [];
foreach ($node->children() as $form) {
$moduleName = $form->getAttribute('module') ?? 'eav';
$translatedLabel = Mage::helper($moduleName)->__((string)$form->label[0]);
Expand Down

0 comments on commit 857709e

Please sign in to comment.