diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Response/RecordCollectionFactory.php b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Response/RecordCollectionFactory.php index 1056ef3feb1..e222235f31e 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Response/RecordCollectionFactory.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Primo/Response/RecordCollectionFactory.php @@ -76,7 +76,7 @@ public function factory($response) } $collection = new $this->collectionClass($response); foreach ($response['documents'] ?? [] as $doc) { - $record = call_user_func($this->recordFactory, $doc); + $record = ($this->recordFactory)($doc); $collection->add($record, false); }