Skip to content

Commit

Permalink
fix: check obj is not an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Filatov committed Sep 1, 2023
1 parent 2c13203 commit 157cf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Soap/SoapImportApis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 157cf06

Please sign in to comment.