Skip to content

Commit 217c674

Browse files
committed
Fix broken exception class usage
1 parent 5c9d500 commit 217c674

File tree

1 file changed

+1
-3
lines changed
  • app/Domain/Notifications/Services

1 file changed

+1
-3
lines changed

app/Domain/Notifications/Services/News.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use Leantime\Domain\Setting\Services\Setting;
99
use Leantime\Domain\Users\Repositories\Users as UserRepository;
1010

11-
use function PHPUnit\Framework\throwException;
12-
1311
/**
1412
* @api
1513
*/
@@ -101,7 +99,7 @@ public function getFeed()
10199
if (function_exists('simplexml_load_string')) {
102100
$responseXml = simplexml_load_string($response);
103101
} else {
104-
throwException("Simple XML load string function doesn't exists");
102+
throw new \Exception("Simple XML extension is not installed");
105103
}
106104

107105
return $responseXml;

0 commit comments

Comments
 (0)