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/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Minz/Request.php') 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]; -- cgit v1.2.3