From 15a51f5433f28f3f2f72bed32725828ea21ebce7 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 11 Mar 2023 11:42:07 +0000 Subject: [PATCH] [REF][PHP8.2] Only set properties which exist within ArrayFormatTrait->loadArray --- Civi/Schema/Traits/ArrayFormatTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Schema/Traits/ArrayFormatTrait.php b/Civi/Schema/Traits/ArrayFormatTrait.php index 520568dcdb..e380b7f3c3 100644 --- a/Civi/Schema/Traits/ArrayFormatTrait.php +++ b/Civi/Schema/Traits/ArrayFormatTrait.php @@ -66,7 +66,7 @@ trait ArrayFormatTrait { if (is_callable([$this, $setter])) { $this->{$setter}($value); } - else { + elseif (!$strict || property_exists($this, $field)) { $this->{$field} = $value; } } -- 2.25.1