mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
More coding style -.-
Can this be done automatically?
This commit is contained in:
parent
1ec4927f69
commit
0ddb7519bb
@ -43,13 +43,13 @@ abstract class ServerTestCase extends TestCase
|
|||||||
],
|
],
|
||||||
'fieldWithSafeException' => [
|
'fieldWithSafeException' => [
|
||||||
'type' => Type::string(),
|
'type' => Type::string(),
|
||||||
'resolve' => function() {
|
'resolve' => function () {
|
||||||
throw new UserError('This is the exception we want');
|
throw new UserError('This is the exception we want');
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'fieldWithUnsafeException' => [
|
'fieldWithUnsafeException' => [
|
||||||
'type' => Type::string(),
|
'type' => Type::string(),
|
||||||
'resolve' => function() {
|
'resolve' => function () {
|
||||||
throw new Unsafe('This exception should not be shown to the user');
|
throw new Unsafe('This exception should not be shown to the user');
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace GraphQL\Tests\Server;
|
namespace GraphQL\Tests\Server;
|
||||||
|
|
||||||
use GraphQL\Error\ClientAware;
|
use GraphQL\Error\ClientAware;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user