From b47719f9138ba01e63202a0ddb8c70b21968ee1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20W=C3=BCnsch?= Date: Mon, 2 Dec 2024 10:16:33 +0100 Subject: [PATCH] PHP Deprecated: MetaboxOrchestra\AdminNotices::add(): Implicitly marking parameter $target_screen as nullable is deprecated, the explicit nullable type must be used instead --- src/AdminNotices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AdminNotices.php b/src/AdminNotices.php index 0896f7a..b164fd2 100644 --- a/src/AdminNotices.php +++ b/src/AdminNotices.php @@ -78,7 +78,7 @@ public function add( string $message, string $title = '', string $type = self::ERROR, - string $target_screen = null + ?string $target_screen = null ): AdminNotices { $user_id = get_current_user_id();