diff --git a/src/Comsave/SalesforceOutboundMessageBundle/Services/DocumentUpdater.php b/src/Comsave/SalesforceOutboundMessageBundle/Services/DocumentUpdater.php index 5a92c0b..95e0613 100644 --- a/src/Comsave/SalesforceOutboundMessageBundle/Services/DocumentUpdater.php +++ b/src/Comsave/SalesforceOutboundMessageBundle/Services/DocumentUpdater.php @@ -55,6 +55,8 @@ public function updateWithValues($document, array $newValues) public function updateWithDocument($document, $newDocument, ?array $allowedProperties = [], ?array $ignoredProperties = []) { $classReflection = new ReflectionClass($newDocument); + $allowedProperties = $allowedProperties ?: []; + $ignoredProperties = $ignoredProperties ?: []; $checkAllowedProperties = count($allowedProperties) > 0; $checkIgnoredProperties = count($ignoredProperties) > 0;