-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] fix docblock #40611
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] fix docblock #40611
Conversation
xabbuh
commented
Mar 28, 2021
Q | A |
---|---|
Branch? | 5.2 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Tickets | |
License | MIT |
Doc PR |
5220f51
to
da181fc
Compare
This fixes tests where the code is patched to have real return type declarations. |
I think you are referring to this PR #40535 But I dont see how your fix solves the build. Could you please elaborate? |
@@ -219,7 +219,7 @@ public function getEnv() | |||
/** | |||
* Returns true if the debug is enabled. | |||
* | |||
* @return bool true if debug is enabled, false otherwise | |||
* @return bool|string true if debug is enabled, false otherwise or a string if no kernel was set |
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.
Is this better?
* @return bool|string true if debug is enabled, false otherwise or a string if no kernel was set | |
* @return bool|'n/a' true if debug is enabled, false otherwise or a string if no kernel was set |
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.
n/a
is not a valid type I think
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.
n/a
is not a valid type I think
'n/a'
is a literal type. PHPStan and Psalm support literal types, but I'm not aware that we've ever used them in the Symfony codebase.
@Nyholm In the pipeline we have a job that patches our code to add real return type declarations. Which means here that when |
Oh. That is cool. I didn't know that. |
Thank you |