Ver Fonte

Merge pull request #10 from Vugario/with-header-return-this

withHeader method did not return the current instance.
Jan Oris há 9 anos atrás
pai
commit
7549fb1117
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/Ixudra/Curl/Builder.php

+ 2 - 0
src/Ixudra/Curl/Builder.php

@@ -116,6 +116,8 @@ class Builder {
     public function withHeader($header)
     {
         $this->curlOptions[ 'HTTPHEADER' ][] = $header;
+
+        return $this;
     }
 
     /**