-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix: Repair conflicts and emove the Debug
ignore errors.
#7801
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -348,6 +348,9 @@ protected function roundTo(float $number, int $increments = 5): float | |
* | ||
* @param RequestInterface $request | ||
* @param ResponseInterface $response | ||
* | ||
* @return void | ||
* @phpstan-return never|void | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There does not include exit() or die(). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done. |
||
*/ | ||
public function prepare(?RequestInterface $request = null, ?ResponseInterface $response = null) | ||
{ | ||
|
@@ -434,6 +437,9 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r | |
* Inject debug toolbar into the response. | ||
* | ||
* @codeCoverageIgnore | ||
* | ||
* @return void | ||
* @phpstan-return never|void | ||
*/ | ||
public function respond() | ||
{ | ||
|
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.
It seems
never
is not returned. See https://phpstan.org/writing-php-code/phpdoc-types#bottom-typeThere 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.
I changed there to
@phpstan-return void
.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.
If
@return
and@phpstan-return
are the same,@phpstan-return
is not needed.Remove it.
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.
done.