Skip to content

Commit 97df5d2

Browse files
Merge pull request #550 from fredden/nodelist-interface-compat
Update function signature to match interface
2 parents aa71a04 + cf4994a commit 97df5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/Model/Dom/NodeList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(
4444
/**
4545
* @inheritDoc
4646
*/
47-
public function item($index): ?ElementInterface
47+
public function item(int $index): ?ElementInterface
4848
{
4949
return $this->objectManager->create(ElementInterface::class, [ 'element' => $this->nodeList->item($index) ]);
5050
}

0 commit comments

Comments
 (0)