From 02c4f63947a27f888720c0be5388df3d78599b2d Mon Sep 17 00:00:00 2001 From: Steven Gallo Date: Fri, 15 Feb 2019 15:12:17 -0500 Subject: [PATCH] Explictly check for stdClass in variable initializer --- classes/ETL/VariableStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ETL/VariableStore.php b/classes/ETL/VariableStore.php index 179ecdf996..9394076868 100644 --- a/classes/ETL/VariableStore.php +++ b/classes/ETL/VariableStore.php @@ -54,7 +54,7 @@ public function __construct($store = null, Log $logger = null) if ( null === $store ) { return; - } elseif ( is_array($store) || $store instanceof VariableStore || $store instanceof \Traversable ) { + } elseif ( is_array($store) || $store instanceof \stdClass || $store instanceof VariableStore || $store instanceof \Traversable ) { foreach ( $store as $variable => $value ) { $this->$variable = $value; }