diff options
| author | 2023-10-30 20:47:27 +0100 | |
|---|---|---|
| committer | 2023-10-30 20:47:27 +0100 | |
| commit | 06d00995049db9c7b915f67cfd4a5708aace458f (patch) | |
| tree | 0176ca9761b34d72ffd597bd96da3c3ae4912d86 /lib/Minz/View.php | |
| parent | 4a02352ccc1b313ce967415c6ac10a32aba1893a (diff) | |
Require PHP 7.4+ (#5720)
* 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
Diffstat (limited to 'lib/Minz/View.php')
| -rw-r--r-- | lib/Minz/View.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/Minz/View.php b/lib/Minz/View.php index 336b57dad..87b85e190 100644 --- a/lib/Minz/View.php +++ b/lib/Minz/View.php @@ -12,22 +12,19 @@ class Minz_View { private const LAYOUT_PATH_NAME = '/layout/'; private const LAYOUT_DEFAULT = 'layout'; - /** @var string */ - private $view_filename = ''; - /** @var string */ - private $layout_filename = ''; + private string $view_filename = ''; + private string $layout_filename = ''; /** @var array<string> */ - private static $base_pathnames = array(APP_PATH); - /** @var string */ - private static $title = ''; + private static array $base_pathnames = [APP_PATH]; + private static string $title = ''; /** @var array<array{'media':string,'url':string}> */ - private static $styles = []; + private static array $styles = []; /** @var array<array{'url':string,'id':string,'defer':bool,'async':bool}> */ - private static $scripts = []; + private static array $scripts = []; /** @var string|array{'dark'?:string,'light'?:string,'default'?:string} */ private static $themeColors; /** @var array<string,mixed> */ - private static $params = []; + private static array $params = []; /** * Determines if a layout is used or not |
