Explorar o código

Bugfix in JSON POST requests

Jan Oris %!s(int64=10) %!d(string=hai) anos
pai
achega
6dce23388c
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      composer.json
  2. 1 1
      src/Ixudra/Curl/Curl.php

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
     "name": "ixudra/curl",
     "description": "Custom PHP Curl library - developer by Ixudra",
-    "version": "0.2.1",
+    "version": "0.2.2",
     "keywords": ["Ixudra", "Laravel", "Curl"],
     "homepage": "http://ixudra.be",
     "license": "MIT",

+ 1 - 1
src/Ixudra/Curl/Curl.php

@@ -45,7 +45,7 @@ class Curl {
         $this->options[ 'POST' ] = $method;
     }
 
-    public function setPostParameters(array $parameters)
+    public function setPostParameters($parameters)
     {
         $this->options[ 'POST' ] = true;
         $this->options[ 'POST_FIELDS' ] = $parameters;