mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
PHPStan: Fix missing requires/namespaces
This commit is contained in:
parent
e40917b792
commit
10b72b0e9e
35 changed files with 89 additions and 37 deletions
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
namespace Friendica\Util;
|
||||
|
||||
use DomXPath;
|
||||
use DOMXPath;
|
||||
use SimpleXMLElement;
|
||||
|
||||
/**
|
||||
|
@ -407,7 +407,7 @@ class XML
|
|||
*/
|
||||
public static function deleteNode(&$doc, $node)
|
||||
{
|
||||
$xpath = new DomXPath($doc);
|
||||
$xpath = new DOMXPath($doc);
|
||||
$list = $xpath->query("//".$node);
|
||||
foreach ($list as $child) {
|
||||
$child->parentNode->removeChild($child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue