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/Session.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/Minz/Session.php') diff --git a/lib/Minz/Session.php b/lib/Minz/Session.php index 421920e2e..137f66b7a 100644 --- a/lib/Minz/Session.php +++ b/lib/Minz/Session.php @@ -4,16 +4,13 @@ * The Minz_Session class handles user’s session */ class Minz_Session { - /** - * @var bool - */ - private static $volatile = false; + + private static bool $volatile = false; /** * For mutual exclusion. - * @var bool */ - private static $locked = false; + private static bool $locked = false; public static function lock(): bool { if (!self::$volatile && !self::$locked) { -- cgit v1.2.3