Skip to content

[HttpFoundation] Add type-hints #33088

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 1 commit into from
Aug 11, 2019

Conversation

azjezz
Copy link
Contributor

@azjezz azjezz commented Aug 9, 2019

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

replace #32271

@nicolas-grekas
Copy link
Member

Please revert all return-type changes, we're not ready to do them.

@azjezz azjezz force-pushed the httpfoundation-type-hints branch 10 times, most recently from 1b9f1b6 to 4588228 Compare August 9, 2019 15:35
@azjezz azjezz force-pushed the httpfoundation-type-hints branch 7 times, most recently from 587f6fb to b0f575c Compare August 9, 2019 17:26
@chalasr chalasr added this to the 5.0 milestone Aug 9, 2019
@azjezz azjezz force-pushed the httpfoundation-type-hints branch from b0f575c to 7fa1d81 Compare August 10, 2019 15:21
@azjezz azjezz force-pushed the httpfoundation-type-hints branch 2 times, most recently from e2820cc to 36373fa Compare August 10, 2019 16:09
@nicolas-grekas nicolas-grekas force-pushed the httpfoundation-type-hints branch from 36373fa to b1be9ce Compare August 11, 2019 08:22
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

@azjezz up for a PR on 4.4 to take my comments into account? I squashes everything here and made some additional fixes too.

* @return self
*/
public static function fromString($headerValue)
public static function fromString(?string $headerValue)
Copy link
Member

Choose a reason for hiding this comment

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

because we were using it ourselves, we have to accept null unless we submit a deprecation on branch 4.4

@nicolas-grekas nicolas-grekas force-pushed the httpfoundation-type-hints branch from b1be9ce to f449e38 Compare August 11, 2019 09:16
nicolas-grekas added a commit that referenced this pull request Aug 11, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

[HttpFoundation] some cleanups

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

As found by @azjezz in #33088

Commits
-------

f62a3c0 [HttpFoundation] some cleanups
@nicolas-grekas nicolas-grekas force-pushed the httpfoundation-type-hints branch 4 times, most recently from 4f4f37f to 61da067 Compare August 11, 2019 09:52
@nicolas-grekas nicolas-grekas force-pushed the httpfoundation-type-hints branch from 61da067 to ead419b Compare August 11, 2019 09:58
@nicolas-grekas
Copy link
Member

Thank you @azjezz.

@nicolas-grekas nicolas-grekas merged commit ead419b into symfony:master Aug 11, 2019
nicolas-grekas added a commit that referenced this pull request Aug 11, 2019
This PR was merged into the 5.0-dev branch.

Discussion
----------

[HttpFoundation] Add type-hints

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

replace #32271

Commits
-------

ead419b add type-hints
@derrabus derrabus mentioned this pull request Aug 12, 2019
57 tasks
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.

6 participants