From 9f675fef02421f8dc73d6f7a63f2865d27140a97 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Mon, 19 Feb 2024 20:19:36 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07231=20-=20PHP=208.1:=20Migrate=20deprec?= =?UTF-8?q?ated=20usages=20of=20rawurlencode()=20with=20null=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/bulkchange.class.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/bulkchange.class.inc.php b/core/bulkchange.class.inc.php index 311ff5479..6ad8eb55c 100644 --- a/core/bulkchange.class.inc.php +++ b/core/bulkchange.class.inc.php @@ -160,7 +160,7 @@ class CellStatus_SearchIssue extends CellStatus_Issue * @param null $sAllowedValues : used for additional message that provides allowed values $sAllowedValues for current class * @param string|null $sAllowedValuesSearch : used to search all allowed values */ - public function __construct($sSerializedSearch, $sReason, $sClass=null, $sAllowedValues=null, string $sAllowedValuesSearch=null) + public function __construct($sSerializedSearch, $sReason, $sClass = null, $sAllowedValues = null, string $sAllowedValuesSearch = null) { parent::__construct(null, null, $sReason); $this->sSerializedSearch = $sSerializedSearch; @@ -195,7 +195,7 @@ class CellStatus_SearchIssue extends CellStatus_Issue public function GetSearchLinkUrl() { return sprintf("UI.php?operation=search&filter=%s", - rawurlencode($this->sSerializedSearch) + rawurlencode($this->sSerializedSearch ?? "") ); } @@ -206,7 +206,7 @@ class CellStatus_SearchIssue extends CellStatus_Issue public function GetAllowedValuesLinkUrl(): ?string { return sprintf("UI.php?operation=search&filter=%s", - rawurlencode($this->sAllowedValuesSearch) + rawurlencode($this->sAllowedValuesSearch ?? "") ); } } @@ -262,7 +262,7 @@ class CellStatus_Ambiguous extends CellStatus_Issue public function GetSearchLinkUrl() { return sprintf("UI.php?operation=search&filter=%s", - rawurlencode($this->sSerializedSearch) + rawurlencode($this->sSerializedSearch ?? "") ); } }