From 8884730206a18e59903a43065d0dabb6dc0691d3 Mon Sep 17 00:00:00 2001 From: Wouter van Dongen Date: Tue, 5 Jul 2022 14:37:46 +0200 Subject: [PATCH] Fix invalid exception argument --- src/Nmap/XmlOutputParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nmap/XmlOutputParser.php b/src/Nmap/XmlOutputParser.php index e5db03f..de952fd 100644 --- a/src/Nmap/XmlOutputParser.php +++ b/src/Nmap/XmlOutputParser.php @@ -4,7 +4,7 @@ use SimpleXMLElement; use Symfony\Component\Filesystem\Exception\FileNotFoundException; -use Symfony\Component\Process\Exception\ProcessFailedException; +use Symfony\Component\Process\Exception\RuntimeException; use Symfony\Component\Process\ExecutableFinder; use Symfony\Component\Process\Process; use Symfony\Component\Filesystem\Filesystem; @@ -59,7 +59,7 @@ private function getXmlstarlet(): string { $xmlstarlet = (new ExecutableFinder)->find('xmlstarlet'); if (empty($xmlstarlet)) { - throw new ProcessFailedException('xmlstarlet could not be found'); + throw new RuntimeException('xmlstarlet could not be found'); } return $xmlstarlet; }