Skip to content

Commit 7c59bb3

Browse files
authored
Merge pull request #75 from php-mod/issue-69
fix phpdoc, add tests
2 parents cbc557d + 3d553d6 commit 7c59bb3

File tree

9 files changed

+319
-286
lines changed

9 files changed

+319
-286
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ All notable changes to this project will be documented in this file. This projec
44

55
## 2.4.0 (in progress)
66

7+
+ [#74](https://github.com/php-mod/curl/pull/75) Fixed PHPDoc Block, Added more Unit Tests.
78
+ Added GitHub Actions Tests (from 5.6 - 8.0)
89

9-
## 2.3.1 (21. January 2021)
10+
## 2.3.1 (21. January 2021)
1011

1112
+ Supports PHP8
1213

13-
## 2.3.0 (19. March 2019)
14+
## 2.3.0 (19. March 2019)
1415

1516
+ add asJson option (#67)
1617

17-
## 2.2.0 (4. December 2018)
18+
## 2.2.0 (4. December 2018)
1819

1920
+ Added some getters.
2021

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,5 @@ In order to test the library:
128128
1. Create a fork
129129
2. Clone the fork to your machine
130130
3. Install the depencies `composer install`
131+
4. Build and start the docker image (in `tests/server`) `docker build . -t curlserver` start `docker run -p 1234:80 curlserver`
131132
4. Run the unit tests `./vendor/bin/phpunit tests`

src/Curl/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public function get($url, $data = array())
318318
* Make a post request with optional post data.
319319
*
320320
* @param string $url The url to make the post request
321-
* @param array $data Post data to pass to the url
321+
* @param array|object|string $data Post data to pass to the url
322322
* @param boolean $asJson Whether the data should be passed as json or not. {@insce 2.2.1}
323323
* @return self
324324
*/

0 commit comments

Comments
 (0)