mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-31 00:21:06 -05:00
* Require PHP 7.4+ https://github.com/FreshRSS/FreshRSS/discussions/5474 * Update Docker oldest Alpine 3.13 with PHP 7.4.26 * Add missing packets to Docker oldest * Update to typed properties https://php.net/migration74.new-features#migration74.new-features.core.typed-properties * More types
16 lines
330 B
PHP
16 lines
330 B
PHP
<?php
|
|
|
|
class FreshRSS_AlreadySubscribed_Exception extends Exception {
|
|
|
|
private string $feedName = '';
|
|
|
|
public function __construct(string $url, string $feedName) {
|
|
parent::__construct('Already subscribed! ' . $url, 2135);
|
|
$this->feedName = $feedName;
|
|
}
|
|
|
|
public function feedName(): string {
|
|
return $this->feedName;
|
|
}
|
|
}
|