We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c9d500 commit 217c674Copy full SHA for 217c674
app/Domain/Notifications/Services/News.php
@@ -8,8 +8,6 @@
8
use Leantime\Domain\Setting\Services\Setting;
9
use Leantime\Domain\Users\Repositories\Users as UserRepository;
10
11
- use function PHPUnit\Framework\throwException;
12
-
13
/**
14
* @api
15
*/
@@ -101,7 +99,7 @@ public function getFeed()
101
99
if (function_exists('simplexml_load_string')) {
102
100
$responseXml = simplexml_load_string($response);
103
} else {
104
- throwException("Simple XML load string function doesn't exists");
+ throw new \Exception("Simple XML extension is not installed");
105
}
106
107
return $responseXml;
0 commit comments