From cbe23151d84f711f5afb58dcc63cb0a3d1faf08f Mon Sep 17 00:00:00 2001 From: AdrienClairembault Date: Wed, 18 Dec 2024 09:51:51 +0100 Subject: [PATCH] Prevent sending null to `tryFrom()` --- src/Glpi/Form/ConditionalVisiblity/ConditionData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Glpi/Form/ConditionalVisiblity/ConditionData.php b/src/Glpi/Form/ConditionalVisiblity/ConditionData.php index 1afeb55d19f..5c0af5c55fe 100644 --- a/src/Glpi/Form/ConditionalVisiblity/ConditionData.php +++ b/src/Glpi/Form/ConditionalVisiblity/ConditionData.php @@ -79,6 +79,6 @@ public function getValueOperator(): ?ValueOperator { // No follback here as an empty value is valid if the condition is not // fully specified yet. - return ValueOperator::tryFrom($this->value_operator); + return ValueOperator::tryFrom($this->value_operator ?? ""); } }