-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
[HttpFoundation] Add type-hints #33088
Conversation
Please revert all return-type changes, we're not ready to do them. |
1b9f1b6
to
4588228
Compare
587f6fb
to
b0f575c
Compare
src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php
Show resolved
Hide resolved
b0f575c
to
7fa1d81
Compare
e2820cc
to
36373fa
Compare
36373fa
to
b1be9ce
Compare
There was a problem hiding this 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) |
There was a problem hiding this comment.
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
b1be9ce
to
f449e38
Compare
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
4f4f37f
to
61da067
Compare
61da067
to
ead419b
Compare
Thank you @azjezz. |
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
replace #32271