mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-31 08:31:03 -05:00
Typed Minz_Extension (#5957)
Replaces https://github.com/FreshRSS/FreshRSS/pull/5837 The signature of methods supposed to be overriden by existing thid-party extensions cannot be modified
This commit is contained in:
committed by
GitHub
parent
c7a3281a73
commit
6d2e53178b
@@ -5,24 +5,18 @@ declare(strict_types=1);
|
||||
* The extension base class.
|
||||
*/
|
||||
abstract class Minz_Extension {
|
||||
/** @var string */
|
||||
private $name;
|
||||
/** @var string */
|
||||
private $entrypoint;
|
||||
/** @var string */
|
||||
private $path;
|
||||
/** @var string */
|
||||
private $author;
|
||||
/** @var string */
|
||||
private $description;
|
||||
/** @var string */
|
||||
private $version;
|
||||
private string $name;
|
||||
private string $entrypoint;
|
||||
private string $path;
|
||||
private string $author;
|
||||
private string $description;
|
||||
private string $version;
|
||||
/** @var 'system'|'user' */
|
||||
private $type;
|
||||
private string $type;
|
||||
/** @var array<string,mixed>|null */
|
||||
private $user_configuration;
|
||||
private ?array $user_configuration;
|
||||
/** @var array<string,mixed>|null */
|
||||
private $system_configuration;
|
||||
private ?array $system_configuration;
|
||||
|
||||
/** @var array{0:'system',1:'user'} */
|
||||
public static array $authorized_types = [
|
||||
@@ -30,8 +24,7 @@ abstract class Minz_Extension {
|
||||
'user',
|
||||
];
|
||||
|
||||
/** @var bool */
|
||||
private $is_enabled;
|
||||
private bool $is_enabled;
|
||||
|
||||
/**
|
||||
* The constructor to assign specific information to the extension.
|
||||
|
||||
Reference in New Issue
Block a user