diff options
| author | 2025-10-21 17:49:06 -0400 | |
|---|---|---|
| committer | 2025-10-21 23:49:06 +0200 | |
| commit | eee8b8c03f93b82ed762137e386659d9da3adbf3 (patch) | |
| tree | ff8d78c35a5dabca59f8b105acad0a5e47e307ce /lib/Minz/Extension.php | |
| parent | 59d33779d1e80ad2bb60b110377a3a18a085f95c (diff) | |
Add support for extension compatibility (#8081)
The compatibility does support only a minimum version of FreshRSS. If we need
something a bit more clever in the future, it is possible to handle a rule
with a bit more complexity.
See https://github.com/FreshRSS/FreshRSS/issues/5903
* Update app/Controllers/extensionController.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Update app/i18n/pl/admin.php
Co-authored-by: Inverle <inverle@proton.me>
* Minor move phpstan-type
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Co-authored-by: Inverle <inverle@proton.me>
Diffstat (limited to 'lib/Minz/Extension.php')
| -rw-r--r-- | lib/Minz/Extension.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php index a35272b03..51088a7a9 100644 --- a/lib/Minz/Extension.php +++ b/lib/Minz/Extension.php @@ -3,6 +3,8 @@ declare(strict_types=1); /** * The extension base class. + * + * @phpstan-type ExtensionMetadata array{name:string,entrypoint:string,author?:string,description?:string,version?:string,type?:'system'|'user',path:string} */ abstract class Minz_Extension { private string $name; @@ -41,7 +43,7 @@ abstract class Minz_Extension { * - version: a version for the current extension. * - type: "system" or "user" (default). * - * @param array{'name':string,'entrypoint':string,'path':string,'author'?:string,'description'?:string,'version'?:string,'type'?:'system'|'user'} $meta_info + * @param ExtensionMetadata $meta_info * contains information about the extension. */ final public function __construct(array $meta_info) { |
