Skip to content

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

Merged
vladar merged 2 commits intowebonyx:masterfrom
survilla:patch-1
Sep 16, 2020
Merged

fix $debug type in StandardServer::send500Error()#722
vladar merged 2 commits intowebonyx:masterfrom
survilla:patch-1

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.

* @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.

5 participants