From 157cf0629db90f8384bff23be8f4011194e12371 Mon Sep 17 00:00:00 2001 From: Dmitry Filatov Date: Fri, 1 Sep 2023 12:23:11 +0300 Subject: [PATCH] fix: check obj is not an array --- src/Traits/Soap/SoapImportApis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Soap/SoapImportApis.php b/src/Traits/Soap/SoapImportApis.php index 1b2e4f8..e385442 100644 --- a/src/Traits/Soap/SoapImportApis.php +++ b/src/Traits/Soap/SoapImportApis.php @@ -62,7 +62,7 @@ public function importVApp(string $resourcePoolId, $entityConfig, $instantiation $extraConfig = []; if (isset($configSpec->extraConfig)) { // sometimes there is only one level of nesting - if (!array($configSpec->extraConfig) && property_exists($configSpec->extraConfig, 'key')) { + if (!is_array($configSpec->extraConfig) && property_exists($configSpec->extraConfig, 'key')) { $extraConfig['key'] = $configSpec->extraConfig->key; $extraConfig['value:string'] = $configSpec->extraConfig->value->_value ?? ''; // but sometimes there are several