Skip to content

[BrowserKit] Various changes to the Response class #29881

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

Merged
merged 3 commits into from
Jan 14, 2019

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jan 14, 2019

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

This is the first PR of a series when I'm trying to "modernize" BrowserKit.

*
* @return int The response status code
*/
public function getStatusCode(): int
Copy link
Member Author

Choose a reason for hiding this comment

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

Consistent with the method name used by HttpFoundation

*/
class Response
{
/** @internal */
Copy link
Member Author

Choose a reason for hiding this comment

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

@final is enough, just to be extra clear.

@fabpot fabpot force-pushed the response-browserkit branch 2 times, most recently from fb40550 to c13438c Compare January 14, 2019 14:48
@fabpot fabpot force-pushed the response-browserkit branch from c13438c to 9045a4e Compare January 14, 2019 15:16
@fabpot fabpot merged commit 9045a4e into symfony:master Jan 14, 2019
fabpot added a commit that referenced this pull request Jan 14, 2019
…bpot)

This PR was squashed before being merged into the 4.3-dev branch (closes #29881).

Discussion
----------

[BrowserKit] Various changes to the Response class

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

This is the first PR of a series when I'm trying to "modernize" BrowserKit.

Commits
-------

9045a4e [BrowserKit] marked Response as @Final
0abff98 [BrowserKit] deprecated Response::buildHeader()
e8e5235 [BrowserKit] deprecated Response::getStatus() in favor of Response::getStatusCode()
@fabpot fabpot deleted the response-browserkit branch January 17, 2019 07:08
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot mentioned this pull request May 9, 2019
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.

5 participants