X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FPPFrame_DOM.php;h=a0ec326d95af11b4929681c7f2c15d0aab11ebc5;hb=552d285184a2ba312700304c7e7414d567966bd9;hp=bb310f21139535b2c368b64a420f181e25108b66;hpb=cd898eb4ededc3ab85b5e40708a4f747be2871dd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/PPFrame_DOM.php b/includes/parser/PPFrame_DOM.php index bb310f2113..a0ec326d95 100644 --- a/includes/parser/PPFrame_DOM.php +++ b/includes/parser/PPFrame_DOM.php @@ -82,7 +82,7 @@ class PPFrame_DOM implements PPFrame { * Create a new child frame * $args is optionally a multi-root PPNode or array containing the template arguments * - * @param bool|array $args + * @param bool|array|PPNode_DOM $args * @param Title|bool $title * @param int $indexOffset * @return PPTemplateFrame_DOM @@ -95,11 +95,12 @@ class PPFrame_DOM implements PPFrame { } if ( $args !== false ) { $xpath = false; - if ( $args instanceof PPNode ) { + if ( $args instanceof PPNode_DOM ) { $args = $args->node; } + // @phan-suppress-next-line PhanTypeSuspiciousNonTraversableForeach foreach ( $args as $arg ) { - if ( $arg instanceof PPNode ) { + if ( $arg instanceof PPNode_DOM ) { $arg = $arg->node; } if ( !$xpath || $xpath->document !== $arg->ownerDocument ) {