Skip to content

Commit

Permalink
Fix bsnoToArray function
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoLouwerse committed Sep 12, 2024
1 parent 5ea1b7a commit affe8e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Service/ZgwToVrijbrpService.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ private function handleCase(array $zaak): void
*
* @return array|mixed
*/
function bsonToArray(mixed $bson): mixed
public function bsonToArray(mixed $bson): mixed
{
if ($bson instanceof BSONDocument || $bson instanceof BSONArray) {
return array_map('bsonToArray', (array) $bson);
// Use [$this, 'bsonToArray'] to refer to the class method in array_map
return array_map([$this, 'bsonToArray'], (array) $bson);
}

return $bson;

}//end bsonToArray()
}


/**
Expand Down

0 comments on commit affe8e5

Please sign in to comment.