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/View.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Minz/View.php') diff --git a/lib/Minz/View.php b/lib/Minz/View.php index 65573c7bd..eebd7ee92 100644 --- a/lib/Minz/View.php +++ b/lib/Minz/View.php @@ -39,8 +39,9 @@ class Minz_View { } /** - * @deprecated Change the view file based on controller and action. + * Change the view file based on controller and action. */ + #[Deprecated('Use Minz_View::_path() instead.')] public function change_view(string $controller_name, string $action_name): void { Minz_Log::warning('Minz_View::change_view is deprecated, it will be removed in a future version. Please use Minz_View::_path instead.'); $this->_path($controller_name . '/' . $action_name . '.phtml'); @@ -170,9 +171,9 @@ class Minz_View { /** * Choose if we want to use the layout or not. - * @deprecated Please use the `_layout` function instead. * @param bool $use true if we want to use the layout, false else */ + #[Deprecated('Use Minz_View::_layout() instead.')] public function _useLayout(bool $use): void { Minz_Log::warning('Minz_View::_useLayout is deprecated, it will be removed in a future version. Please use Minz_View::_layout instead.'); if ($use) { -- cgit v1.2.3