From d60d8313d020dbb9ef196433d4dc610158c2f4c0 Mon Sep 17 00:00:00 2001 From: Dag Date: Sat, 4 Jun 2022 21:05:43 +0200 Subject: [PATCH] fix: type error in function call (#2769) Fixes: Argument 2 passed to getContents() must be of the type array, int given --- bridges/MarktplaatsBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/MarktplaatsBridge.php b/bridges/MarktplaatsBridge.php index 7e2877d3..de1dd509 100644 --- a/bridges/MarktplaatsBridge.php +++ b/bridges/MarktplaatsBridge.php @@ -77,7 +77,7 @@ class MarktplaatsBridge extends BridgeAbstract { } } $url = 'https://www.marktplaats.nl/lrp/api/search?query=' . urlencode($this->getInput('q')) . $query; - $jsonString = getSimpleHTMLDOM($url, 900); + $jsonString = getSimpleHTMLDOM($url); $jsonObj = json_decode($jsonString); foreach($jsonObj->listings as $listing) { if(!$excludeGlobal || $listing->location->distanceMeters >= 0) {