diff options
| author | 2023-03-31 08:23:39 +0200 | |
|---|---|---|
| committer | 2023-03-31 08:23:39 +0200 | |
| commit | 288ed04ccc30b58373576dc3be811aee43e67034 (patch) | |
| tree | 27f4c571e04d64c97737416dfa2b8d65f481dfd8 /app/Exceptions/FeedNotAddedException.php | |
| parent | c9d5fe2da12cbc3a071ebf9a518afe2789bb3d61 (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/FeedNotAddedException.php')
| -rw-r--r-- | app/Exceptions/FeedNotAddedException.php | 6 |
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; } } |
