From faaa50f227b8f313897b99bd0fd7ed06901b9954 Mon Sep 17 00:00:00 2001 From: Brooke Bryan Date: Mon, 8 Dec 2014 18:17:15 +0000 Subject: [PATCH] Allow null payloads --- src/Abstracts/AbstractEndpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Abstracts/AbstractEndpoint.php b/src/Abstracts/AbstractEndpoint.php index 62ec66e..4a26ab2 100644 --- a/src/Abstracts/AbstractEndpoint.php +++ b/src/Abstracts/AbstractEndpoint.php @@ -53,7 +53,7 @@ public function getBasePath() * * @return mixed */ - protected function _buildPath($path, ApiPayloadInterface $payload) + protected function _buildPath($path, ApiPayloadInterface $payload = null) { if(stristr($path, ':') && $payload !== null) {