Skip to content

Commit

Permalink
Fix broken exception class usage
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 12, 2024
1 parent 5c9d500 commit 217c674
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Domain/Notifications/Services/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use Leantime\Domain\Setting\Services\Setting;
use Leantime\Domain\Users\Repositories\Users as UserRepository;

use function PHPUnit\Framework\throwException;

/**
* @api
*/
Expand Down Expand Up @@ -101,7 +99,7 @@ public function getFeed()
if (function_exists('simplexml_load_string')) {
$responseXml = simplexml_load_string($response);
} else {
throwException("Simple XML load string function doesn't exists");
throw new \Exception("Simple XML extension is not installed");
}

return $responseXml;
Expand Down

0 comments on commit 217c674

Please sign in to comment.