From 06d00995049db9c7b915f67cfd4a5708aace458f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 30 Oct 2023 20:47:27 +0100 Subject: 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 --- lib/Minz/ActionController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Minz/ActionController.php') 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 */ - private static $csp_default = [ + private static array $csp_default = [ 'default-src' => "'self'", ]; /** @var array */ - 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 -- cgit v1.2.3