X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsite%2FSiteImporter.php;h=571b6e44c6d3bf2917ce06872345fbc2db9ee5b6;hb=bb915b0776c656b89ed5c14352ff92dfb07ce8f2;hp=5e13d061528824f0c40b8c7fb72c2419a77ca018;hpb=a8ec960e9d910acbcd0d50efad3bd73e3ae812aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/SiteImporter.php b/includes/site/SiteImporter.php index 5e13d06152..571b6e44c6 100644 --- a/includes/site/SiteImporter.php +++ b/includes/site/SiteImporter.php @@ -24,7 +24,7 @@ * @file * @ingroup Site * - * @license GNU GPL v2+ + * @license GPL-2.0-or-later * @author Daniel Kinzler */ class SiteImporter { @@ -168,6 +168,7 @@ class SiteImporter { $pathTags = $siteElement->getElementsByTagName( 'path' ); for ( $i = 0; $i < $pathTags->length; $i++ ) { $pathElement = $pathTags->item( $i ); + '@phan-var DOMElement $pathElement'; $pathType = $this->getAttributeValue( $pathElement, 'type' ); $path = $pathElement->textContent; @@ -177,6 +178,7 @@ class SiteImporter { $idTags = $siteElement->getElementsByTagName( 'localid' ); for ( $i = 0; $i < $idTags->length; $i++ ) { $idElement = $idTags->item( $i ); + '@phan-var DOMElement $idElement'; $idType = $this->getAttributeValue( $idElement, 'type' ); $id = $idElement->textContent;