Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added null type on Request::create docblock #24902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

plazma0
Copy link

@plazma0 plazma0 commented Nov 10, 2017

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT

@xabbuh xabbuh added this to the 2.7 milestone Nov 10, 2017
* @param array $cookies The request cookies ($_COOKIE)
* @param array $files The request files ($_FILES)
* @param array $server The server parameters ($_SERVER)
* @param string|null $content The raw body data
Copy link
Member

Choose a reason for hiding this comment

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

it affects not only this method, but other methods and property as well

Copy link
Member

Choose a reason for hiding this comment

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

@keradus what do you mean? Looking at the code, passing null is not supported for the other argument. Yes, technically you can, but then, the behavior is certainly not part of any contract - except for $content.

Copy link
Member

@nicolas-grekas nicolas-grekas Nov 27, 2017

Choose a reason for hiding this comment

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

Oups, I needed to post to actually understand your comment. Other methods :)
@plazma0 would you mind reviewing the $content argument then in other methods?
Please note that this PR should be merged against branch 2.7, so that if you know how to do it (moving the target branch + rebasing your branch), you're welcomed.

@fabpot
Copy link
Member

fabpot commented Dec 11, 2017

@plazma0 Still interested in finishing this pull request?

@nicolas-grekas
Copy link
Member

Replaced by #25875, thanks @plazma0

nicolas-grekas added a commit that referenced this pull request Jan 21, 2018
…e docblock (Jack Wright)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpFoundation] Added "resource" type on Request::create docblock

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Replaces #24902

Commits
-------

d1a96ca [HttpFoundation] Added "resource" type on Request::create docblock
fabpot added a commit that referenced this pull request Jan 29, 2018
…cblock (keradus)

This PR was squashed before being merged into the 2.7 branch (closes #25878).

Discussion
----------

[HttpFoundation] Added "null" type on Request::create docblock

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | n/a
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Continuation of #24902 and #25875

Commits
-------

b18f9e7 [HttpFoundation] Added "null" type on Request::create docblock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.