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

fix $debug type in StandardServer::send500Error() #722

Merged
merged 2 commits into from
Sep 16, 2020
Merged

fix $debug type in StandardServer::send500Error() #722

merged 2 commits into from
Sep 16, 2020

Conversation

survilla
Copy link
Contributor

$debug in StandardServer::send500Error() should be int in the same way as in definition of the FormattedError::createFromException()

`$debug` should be `int` in the same way as in definition of the `FormattedError::createFromException()`
@coveralls
Copy link

coveralls commented Aug 28, 2020

Coverage Status

Coverage remained the same at 86.309% when pulling ba2286e on janzimmermannnetrex:patch-1 into 4f34309 on webonyx:master.

Copy link
Collaborator

@spawnia spawnia left a comment

Choose a reason for hiding this comment

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

The change makes sense, I would go ahead and convert to proper type hints.

* @param bool $exitWhenDone
*
* @api
*/
public static function send500Error($error, $debug = false, $exitWhenDone = false)
public static function send500Error($error, $debug = DebugFlag::NONE, $exitWhenDone = false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public static function send500Error($error, $debug = DebugFlag::NONE, $exitWhenDone = false)
public static function send500Error(Throwable $error, int $debug = DebugFlag::NONE, bool $exitWhenDone = false): void

@vladar vladar merged commit 58df707 into webonyx:master Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants