From 44b749f2bff063ffcebae86df50240e23b37cd91 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 24 Aug 2021 18:47:13 +0200 Subject: [PATCH] BranchModificationStore: cast eventual objects --- library/Director/Db/Branch/BranchModificationStore.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Director/Db/Branch/BranchModificationStore.php b/library/Director/Db/Branch/BranchModificationStore.php index 31c7f530..d2aa7eea 100644 --- a/library/Director/Db/Branch/BranchModificationStore.php +++ b/library/Director/Db/Branch/BranchModificationStore.php @@ -228,7 +228,7 @@ class BranchModificationStore 'uuid' => Uuid::uuid4()->getBytes(), 'object_id' => $objectId, 'created' => 'y', - ] + $properties); + ] + (array) $properties); } protected function delete($objectId, UuidInterface $branchUuid) @@ -247,13 +247,13 @@ class BranchModificationStore 'branch_uuid' => $branchUuid->getBytes(), 'uuid' => Uuid::uuid4()->getBytes(), 'object_id' => $objectId, - ] + $properties); + ] + (array) $properties); } protected function update($binaryUuid, $properties) { $this->db->update($this->table, [ 'uuid' => Uuid::uuid4()->getBytes(), - ] + $properties, $this->db->quoteInto('uuid = ?', $binaryUuid)); + ] + (array) $properties, $this->db->quoteInto('uuid = ?', $binaryUuid)); } }