Skip to content

Commit 847b2d6

Browse files
Fix failing static tests
1 parent 25c4347 commit 847b2d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*
1717
* Marked as public API because it is actively used now.
1818
*
19+
* phpcs:disable Magento2.Classes.AbstractApi
1920
* @api
2021
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2122
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
@@ -440,9 +441,9 @@ public function unsetChild($alias)
440441
*/
441442
public function unsetCallChild($alias, $callback, $result, $params)
442443
{
444+
$args = func_get_args();
443445
$child = $this->getChildBlock($alias);
444446
if ($child) {
445-
$args = func_get_args();
446447
$alias = array_shift($args);
447448
$callback = array_shift($args);
448449
$result = (string)array_shift($args);

0 commit comments

Comments
 (0)