diff options
| author | 2025-12-17 10:11:18 +0100 | |
|---|---|---|
| committer | 2025-12-17 10:11:18 +0100 | |
| commit | 00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch) | |
| tree | e1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /lib/Minz/Request.php | |
| parent | 4bd503591469f47e710f1afbf0b5883f7770065d (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/Request.php')
| -rw-r--r-- | lib/Minz/Request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 8667c6442..cfb309ff6 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -42,8 +42,8 @@ class Minz_Request { * @param mixed $default default value, if no parameter is given * @param bool $specialchars `true` to return special characters, `false` (default) to XML-encode them * @return mixed value of the parameter - * @deprecated use typed versions instead */ + #[Deprecated('Use typed versions instead')] public static function param(string $key, mixed $default = false, bool $specialchars = false): mixed { if (isset(self::$params[$key])) { $p = self::$params[$key]; |
