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; }