Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fixed docblock #71

Closed
wants to merge 1 commit into from
Closed

Fixed docblock #71

wants to merge 1 commit into from

Conversation

bakura10
Copy link
Contributor

Hi,

I think the docblock here is wrong, as you're doing a json_encode a bit later in the process.

@@ -35,7 +35,7 @@ class JsonResponse extends Response
* - JSON_HEX_AMP
* - JSON_HEX_QUOT
*
* @param string $data Data to convert to JSON.
* @param array $data Data to convert to JSON.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it could be anything but a resource. so scalar|array|object :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering the internal jsonEncode() method typehints as mixed, that's what I'll do on merge.

weierophinney added a commit that referenced this pull request Jul 29, 2015
weierophinney added a commit that referenced this pull request Jul 29, 2015
@weierophinney weierophinney added this to the 1.1.3 milestone Jul 29, 2015
@weierophinney weierophinney self-assigned this Jul 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants