Skip to content
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

[HttpKernel] add type-hint for the requestType #25016

Conversation

Simperfit
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets see sensiolabs/SensioFrameworkExtraBundle#530
License MIT

#SymfonyConHackday2017

@nicolas-grekas
Copy link
Member

Adding the type hints actually breaks the signature of constructor, when "null" is provided.
Since the docblcks are not authoritative, we should accept as bug fix these kind of changes, and we may then deprecate passing null in 4.*. Would be smoother to our user base (similar changes have already been merged.)

@nicolas-grekas
Copy link
Member

Thank you @Simperfit.

@nicolas-grekas nicolas-grekas merged commit 62d933d into symfony:master Nov 19, 2017
nicolas-grekas added a commit that referenced this pull request Nov 19, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[HttpKernel] add type-hint for the requestType

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | see sensiolabs/SensioFrameworkExtraBundle#530
| License       | MIT

#SymfonyConHackday2017

Commits
-------

62d933d [HttpKernel] add type-hint for the requestType
@fabpot fabpot mentioned this pull request Nov 21, 2017
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.

None yet

3 participants