소스 검색

Bugfix in JSON POST requests

Jan Oris 10 년 전
부모
커밋
6dce23388c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;