More coding style -.-

Can this be done automatically?
This commit is contained in:
spawnia 2018-09-03 22:46:14 +02:00
parent 1ec4927f69
commit 0ddb7519bb
2 changed files with 4 additions and 2 deletions

View File

@ -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');
}, },
], ],

View File

@ -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;