aboutsummaryrefslogtreecommitdiff
path: root/app/Models/View.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2025-10-21 17:49:06 -0400
committerGravatar GitHub <noreply@github.com> 2025-10-21 23:49:06 +0200
commiteee8b8c03f93b82ed762137e386659d9da3adbf3 (patch)
treeff8d78c35a5dabca59f8b105acad0a5e47e307ce /app/Models/View.php
parent59d33779d1e80ad2bb60b110377a3a18a085f95c (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 'app/Models/View.php')
-rw-r--r--app/Models/View.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Models/View.php b/app/Models/View.php
index cf5c30e15..b251e95ed 100644
--- a/app/Models/View.php
+++ b/app/Models/View.php
@@ -1,6 +1,9 @@
<?php
declare(strict_types=1);
+/**
+ * @phpstan-import-type ExtensionFullMetadata from FreshRSS_extension_Controller
+ */
class FreshRSS_View extends Minz_View {
// Main views
@@ -123,7 +126,7 @@ class FreshRSS_View extends Minz_View {
public bool $selectorSuccess;
// Extensions
- /** @var array<array{name:string,author:string,description:string,version:string,entrypoint:string,type:'system'|'user',url:string,method:string,directory:string}> */
+ /** @var list<ExtensionFullMetadata> */
public array $available_extensions;
public ?Minz_Extension $ext_details = null;
/** @var array{system:array<Minz_Extension>,user:array<Minz_Extension>} */