Selaa lähdekoodia

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

withHeader method did not return the current instance.
Jan Oris 9 vuotta sitten
vanhempi
commit
7549fb1117
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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;
     }
 
     /**