From 8f8992f5fd1ec8943c586b550d2059b6757bbda7 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 14 Aug 2021 23:03:16 +0100 Subject: [PATCH] Added missing fallback to GET Closes #167 --- src/Serializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer.php b/src/Serializer.php index 4f1b5aad..87fbd5ba 100644 --- a/src/Serializer.php +++ b/src/Serializer.php @@ -121,7 +121,7 @@ protected function createRequest(CommandInterface $command) // If command does not specify a template, assume the client's base URL. if (null === $operation->getUri()) { return new Request( - $operation->getHttpMethod(), + $operation->getHttpMethod() ?: 'GET', $this->description->getBaseUri() ); }