From 00cd5df294c875ea1e00ab2f645a338a6bd92c8e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 17 Dec 2025 10:11:18 +0100 Subject: Use native PHP #[Deprecated] (#8325) https://php.watch/versions/8.4/Deprecated And enfore it with PHPUnit + PHPStan. Especially useful for extensions. --- lib/Minz/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Minz/Session.php') diff --git a/lib/Minz/Session.php b/lib/Minz/Session.php index 2f4058905..d9eab6434 100644 --- a/lib/Minz/Session.php +++ b/lib/Minz/Session.php @@ -61,8 +61,8 @@ class Minz_Session { * @param string $p the parameter to retrieve * @param mixed|false $default the default value if the parameter doesn’t exist * @return mixed|false the value of the session variable, false if doesn’t exist - * @deprecated Use typed versions instead */ + #[Deprecated('Use typed versions instead')] public static function param(string $p, $default = false): mixed { return $_SESSION[$p] ?? $default; } -- cgit v1.2.3