Skip to content

Commit 5eaef76

Browse files
committed
github-issue; #2228; Fixes to Simplexml Element class to satisfy static tests
1 parent ada83e4 commit 5eaef76

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/internal/Magento/Framework/Simplexml/Element.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ class Element extends \SimpleXMLElement
2424
*/
2525
protected $_parent = null;
2626

27+
/**
28+
* For future use
29+
*
30+
* @param \Magento\Framework\Simplexml\Element $element
31+
* @return void
32+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
33+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
34+
*/
35+
public function setParent($element)
36+
{
37+
}
38+
// phpcs:enable
39+
2740
/**
2841
* Returns parent node for the element
2942
*

0 commit comments

Comments
 (0)