aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions/FeedNotAddedException.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Exceptions/FeedNotAddedException.php')
-rw-r--r--app/Exceptions/FeedNotAddedException.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Exceptions/FeedNotAddedException.php b/app/Exceptions/FeedNotAddedException.php
index 59fa74b16..b10e93f05 100644
--- a/app/Exceptions/FeedNotAddedException.php
+++ b/app/Exceptions/FeedNotAddedException.php
@@ -1,14 +1,16 @@
<?php
class FreshRSS_FeedNotAdded_Exception extends Exception {
+
+ /** @var string */
private $url = '';
- public function __construct($url) {
+ public function __construct(string $url) {
parent::__construct('Feed not added! ' . $url, 2147);
$this->url = $url;
}
- public function url() {
+ public function url(): string {
return $this->url;
}
}