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/ModelPdo.php | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'lib/Minz/ModelPdo.php') diff --git a/lib/Minz/ModelPdo.php b/lib/Minz/ModelPdo.php index 63d8be2ca..1e67fef9f 100644 --- a/lib/Minz/ModelPdo.php +++ b/lib/Minz/ModelPdo.php @@ -12,29 +12,16 @@ class Minz_ModelPdo { /** * Shares the connection to the database between all instances. - * @var bool */ - public static $usesSharedPdo = true; + public static bool $usesSharedPdo = true; - /** - * @var Minz_Pdo|null - */ - private static $sharedPdo; + private static ?Minz_Pdo $sharedPdo = null; - /** - * @var string|null - */ - private static $sharedCurrentUser; + private static ?string $sharedCurrentUser; - /** - * @var Minz_Pdo - */ - protected $pdo; + protected Minz_Pdo $pdo; - /** - * @var string|null - */ - protected $current_user; + protected ?string $current_user; /** * @throws Minz_ConfigurationNamespaceException -- cgit v1.2.3