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/ActionController.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/ActionController.php')
| -rw-r--r-- | lib/Minz/ActionController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Minz/ActionController.php b/lib/Minz/ActionController.php index 553862bab..68ef0695c 100644 --- a/lib/Minz/ActionController.php +++ b/lib/Minz/ActionController.php @@ -10,12 +10,12 @@ class Minz_ActionController { /** @var array<string,string> */ - private static $csp_default = [ + private static array $csp_default = [ 'default-src' => "'self'", ]; /** @var array<string,string> */ - private $csp_policies; + private array $csp_policies; /** @var Minz_View */ protected $view; @@ -25,7 +25,7 @@ class Minz_ActionController { * @var class-string * @deprecated Use constructor with view type instead */ - public static $defaultViewType = Minz_View::class; + public static string $defaultViewType = Minz_View::class; /** * @phpstan-param class-string|'' $viewType |
