Skip to content

Commit

Permalink
fix $debug type
Browse files Browse the repository at this point in the history
`$debug` should be `int` in the same way as in definition of the `FormattedError::createFromException()`
  • Loading branch information
janzimmermannnetrex committed Aug 28, 2020
1 parent 4f34309 commit df7aa4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Server/StandardServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use GraphQL\Error\FormattedError;
use GraphQL\Error\InvariantViolation;
use GraphQL\Error\DebugFlag;
use GraphQL\Executor\ExecutionResult;
use GraphQL\Executor\Promise\Promise;
use GraphQL\Utils\Utils;
Expand Down Expand Up @@ -50,12 +51,12 @@ class StandardServer
* (e.g. during schema instantiation).
*
* @param Throwable $error
* @param bool $debug
* @param int $debug
* @param bool $exitWhenDone
*
* @api
*/
public static function send500Error($error, $debug = false, $exitWhenDone = false)
public static function send500Error($error, $debug = DebugFlag::NONE, $exitWhenDone = false)
{
$response = [
'errors' => [FormattedError::createFromException($error, $debug)],
Expand Down

0 comments on commit df7aa4a

Please sign in to comment.