From 06c48b8a123c9e5ad28e78fa33c9e3841b9dea7d Mon Sep 17 00:00:00 2001 From: Toby New Date: Mon, 15 Oct 2018 17:57:23 +0100 Subject: [PATCH] Add array push to replace += operator for multiple path element calls. --- src/apicore/structure/request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apicore/structure/request.php b/src/apicore/structure/request.php index 53f67aa..777c254 100644 --- a/src/apicore/structure/request.php +++ b/src/apicore/structure/request.php @@ -79,7 +79,7 @@ public function addPathElement($path, $reset = FALSE){ if($reset){ $this->path = $elements; } else { - $this->path += $elements; + array_push($this->path, $elements); } return $this; }