diff options
| author | 2023-07-07 21:53:17 +0200 | |
|---|---|---|
| committer | 2023-07-07 21:53:17 +0200 | |
| commit | 7f9594b8c7d7799f2e5f89328bd5981410db8cf0 (patch) | |
| tree | 67614f8f3d04e94139d19dad3dd438f3bd949368 /lib/Minz/ExtensionManager.php | |
| parent | 1db606bc1b6cf25d9b9c4bef362acdb964ce1e8a (diff) | |
fix many "Only booleans are allowed in an if condition" (#5501)
* fix many "Only booleans are allowed in an if condition"
* Update cli/create-user.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Update cli/i18n/I18nUsageValidator.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Fix several regressions and other minor things
* Fix another regression
* Update lib/http-conditional.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'lib/Minz/ExtensionManager.php')
| -rw-r--r-- | lib/Minz/ExtensionManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/ExtensionManager.php b/lib/Minz/ExtensionManager.php index 4fc62f254..88e793d39 100644 --- a/lib/Minz/ExtensionManager.php +++ b/lib/Minz/ExtensionManager.php @@ -145,7 +145,7 @@ final class Minz_ExtensionManager { continue; } $meta_raw_content = file_get_contents($metadata_filename) ?: ''; - /** @var array{'name':string,'entrypoint':string,'path':string,'author'?:string,'description'?:string,'version'?:string,'type'?:'system'|'user'}|null */ + /** @var array{'name':string,'entrypoint':string,'path':string,'author'?:string,'description'?:string,'version'?:string,'type'?:'system'|'user'}|null $meta_json */ $meta_json = json_decode($meta_raw_content, true); if (!$meta_json || !self::isValidMetadata($meta_json)) { // metadata.json is not a json file? Invalid! |
