Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Feb 4, 2025
1 parent ca8effc commit 4732695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/Writers/Xml/XmlWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
namespace PHPUnuhi\Services\Writers\Xml;

use DOMDocument;
use Exception;

class XmlWriter implements XmlWriterInterface
{
public function saveXml(string $filename, string $content): void
{
if (is_dir($filename)) {
throw new \Exception('Provided filename for the XML file is a directory: ' . $filename . '. Please provide a valid filename.');
throw new Exception('Provided filename for the XML file is a directory: ' . $filename . '. Please provide a valid filename.');
}

$dom = new DOMDocument();
Expand Down

0 comments on commit 4732695

Please sign in to comment.