aboutsummaryrefslogtreecommitdiff
path: root/app/Exceptions/AlreadySubscribedException.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-03-31 08:23:39 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-31 08:23:39 +0200
commit288ed04ccc30b58373576dc3be811aee43e67034 (patch)
tree27f4c571e04d64c97737416dfa2b8d65f481dfd8 /app/Exceptions/AlreadySubscribedException.php
parentc9d5fe2da12cbc3a071ebf9a518afe2789bb3d61 (diff)
PHPStan level 6 for all PDO and Exception classes (#5239)
* PHPStan level 6 for all PDO and Exception classes Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 * Fix type * Now also our remaining own librairies * Motivation for a few more files * A few more DAO classes * Last interface
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;
}
}