Bläddra i källkod

Update Builder.php

After the improvement of type hinting and the force to pass an array to the withData function, my application is not longer working.
I make requests to an XML API, where the post data should be a string. It worked fine in the 6.10 version.
robjuz 7 år sedan
förälder
incheckning
0f999cf581
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/Builder.php

+ 2 - 2
src/Builder.php

@@ -64,10 +64,10 @@ class Builder {
     /**
      * Add GET or POST data to the request
      *
-     * @param   array $data     Array of data that is to be sent along with the request
+     * @param   mixed $data     Array of data that is to be sent along with the request
      * @return Builder
      */
-    public function withData(array $data = array())
+    public function withData($data = array())
     {
         return $this->withPackageOption( 'data', $data );
     }