From 11a10be9f8ef492fa4463648b8b31e13327c5648 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Wed, 23 Apr 2025 15:55:31 +0200 Subject: [PATCH] DeployFormsBug7530: Do not pass null values to `strlen` Since PHP 8.0 passing of null to strlen is deprecated and hence must be avoided. --- application/forms/DeployFormsBug7530.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/DeployFormsBug7530.php b/application/forms/DeployFormsBug7530.php index b31d3563..0d127f9e 100644 --- a/application/forms/DeployFormsBug7530.php +++ b/application/forms/DeployFormsBug7530.php @@ -13,7 +13,7 @@ trait DeployFormsBug7530 if (parent::hasBeenSubmitted()) { return true; } else { - return \strlen($this->getSentValue('confirm_7530')) > 0; + return strlen($this->getSentValue('confirm_7530', '')) > 0; } }