Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod authored and github-actions[bot] committed Jan 5, 2024
1 parent 419883d commit d920683
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'message' => ['type' => Type::string()],
],
'resolve' => function ($rootValue, array $args) {
$deferred = new \React\Promise\Deferred();
$deferred = new React\Promise\Deferred();
$promise = $deferred->promise();
$promise = $promise = $promise->then(static fn (): string => $rootValue['prefix'] . $args['message']);
$deferred->resolve();
Expand Down
4 changes: 2 additions & 2 deletions src/Error/Warning.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function suppress($suppress = true): void
self::$enableWarnings = 0;
} elseif ($suppress === false) {
self::$enableWarnings = self::ALL;
// @phpstan-ignore-next-line necessary until we can use proper unions
// @phpstan-ignore-next-line necessary until we can use proper unions
} elseif (\is_int($suppress)) {
self::$enableWarnings &= ~$suppress;
} else {
Expand All @@ -88,7 +88,7 @@ public static function enable($enable = true): void
self::$enableWarnings = self::ALL;
} elseif ($enable === false) {
self::$enableWarnings = 0;
// @phpstan-ignore-next-line necessary until we can use proper unions
// @phpstan-ignore-next-line necessary until we can use proper unions
} elseif (\is_int($enable)) {
self::$enableWarnings |= $enable;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @phpstan-import-type FieldResolver from Executor
*
* @see \GraphQL\Tests\GraphQLTest
* @see Tests\GraphQLTest
*/
class GraphQL
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/ServerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function setPersistedQueryLoader(?callable $persistedQueryLoader): self
/**
* Set response debug flags.
*
* @see \GraphQL\Error\DebugFlag class for a list of all available flags
* @see DebugFlag class for a list of all available flags
*
* @api
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Rules/QuerySecurityRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function gatherFragmentDefinition(QueryValidationContext $context): vo
* time we do not know what object type will be used, so we unconditionally
* spread in all fragments.
*
* @see \GraphQL\Validator\Rules\OverlappingFieldsCanBeMerged
* @see OverlappingFieldsCanBeMerged
*
* @param \ArrayObject<string, true>|null $visitedFragmentNames
*
Expand Down
2 changes: 1 addition & 1 deletion tests/Utils/SchemaExtenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ private function printASTSchema(Schema $schema): string
}

/**
* @throws \GraphQL\Error\SerializationError
* @throws \JsonException
* @throws Error
* @throws InvariantViolation
* @throws SerializationError
*/
private static function assertSchemaEquals(Schema $expectedSchema, Schema $actualSchema): void
{
Expand Down

0 comments on commit d920683

Please sign in to comment.