aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions/AlreadySubscribedException.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Exceptions/AlreadySubscribedException.php')
-rw-r--r--app/Exceptions/AlreadySubscribedException.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Exceptions/AlreadySubscribedException.php b/app/Exceptions/AlreadySubscribedException.php
index 33b9f9555..c2b11d3a0 100644
--- a/app/Exceptions/AlreadySubscribedException.php
+++ b/app/Exceptions/AlreadySubscribedException.php
@@ -1,14 +1,16 @@
<?php
class FreshRSS_AlreadySubscribed_Exception extends Exception {
+
+ /** @var string */
private $feedName = '';
- public function __construct($url, $feedName) {
+ public function __construct(string $url, string $feedName) {
parent::__construct('Already subscribed! ' . $url, 2135);
$this->feedName = $feedName;
}
- public function feedName() {
+ public function feedName(): string {
return $this->feedName;
}
}