aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Session.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-17 10:11:18 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-17 10:11:18 +0100
commit00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch)
treee1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /lib/Minz/Session.php
parent4bd503591469f47e710f1afbf0b5883f7770065d (diff)
Use native PHP #[Deprecated] (#8325)
https://php.watch/versions/8.4/Deprecated And enfore it with PHPUnit + PHPStan. Especially useful for extensions.
Diffstat (limited to 'lib/Minz/Session.php')
-rw-r--r--lib/Minz/Session.php2
1 files changed, 1 insertions, 1 deletions
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;
}