Skip to content

Conversation

@JanPetterMG
Copy link
Contributor

@JanPetterMG JanPetterMG commented Mar 26, 2017

Added phpdoc for Response constructor
At least PHPStorm (probably others too) is guessing that $content is an array, witch it is not...

Cast $statusCode as int
This could saved me a lot of debugging, was receiving lots of InvalidUrlException for URLs with Status code == 200. Easy to fix internally, but sharing it upstream is probably an even better solution.

Added default value [] of array $info in the Response constructor.
The value isn't used for anything internally, it's just there for optional external usage.

@oscarotero oscarotero merged commit 7a72fa9 into php-embed:master Mar 27, 2017
@oscarotero
Copy link
Collaborator

Thanks

@JanPetterMG JanPetterMG deleted the patch-1 branch March 27, 2017 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants