Skip to content

Commit

Permalink
Make psalm happy
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Jul 9, 2022
1 parent 1e2da43 commit e863dce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/PharRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
namespace PharIo\Phive;

use DOMNode;
use function array_unique;
use function chmod;
use function file_get_contents;
Expand Down Expand Up @@ -86,6 +87,7 @@ public function addUsage(Phar $phar, Filename $destination): void {
$oldUsage = $this->dbFile->query(sprintf('//phive:usage[@destination="%s"]', $absolutePath))->item(0);

if ($oldUsage !== null) {
assert($oldUsage->parentNode instanceof DOMNode);
$oldUsage->parentNode->removeChild($oldUsage);
}

Expand Down

0 comments on commit e863dce

Please sign in to comment.