Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincz committed Jan 29, 2024
1 parent ddb6c93 commit ca5ec9f
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.2"
php-version: "8.1"
coverage: "none"

- name: "Install dependencies"
Expand Down
1 change: 1 addition & 0 deletions src/Config/TypeDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ protected function validationSection(int $level): ArrayNodeDefinition
return $value;
}
}

// validation: [list of constraints]
return ['constraints' => $value];
}
Expand Down
2 changes: 0 additions & 2 deletions src/Relay/Connection/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ public function setEdges(iterable $edges): void;

/**
* Get the page info.
*
* @return PageInfoInterface
*/
public function getPageInfo(): ?PageInfoInterface;

Expand Down
12 changes: 0 additions & 12 deletions src/Relay/Connection/Output/PageInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public function __construct(string $startCursor = null, string $endCursor = null
$this->hasNextPage = $hasNextPage;
}

/**
* @return string
*/
public function getStartCursor(): ?string
{
return $this->startCursor;
Expand All @@ -36,9 +33,6 @@ public function setStartCursor(string $startCursor): void
$this->startCursor = $startCursor;
}

/**
* @return string
*/
public function getEndCursor(): ?string
{
return $this->endCursor;
Expand All @@ -49,9 +43,6 @@ public function setEndCursor(string $endCursor): void
$this->endCursor = $endCursor;
}

/**
* @return bool
*/
public function getHasPreviousPage(): ?bool
{
return $this->hasPreviousPage;
Expand All @@ -62,9 +53,6 @@ public function setHasPreviousPage(bool $hasPreviousPage): void
$this->hasPreviousPage = $hasPreviousPage;
}

/**
* @return bool
*/
public function getHasNextPage(): ?bool
{
return $this->hasNextPage;
Expand Down
12 changes: 0 additions & 12 deletions src/Relay/Connection/PageInfoInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,18 @@

interface PageInfoInterface
{
/**
* @return string
*/
public function getStartCursor(): ?string;

public function setStartCursor(string $startCursor): void;

/**
* @return string
*/
public function getEndCursor(): ?string;

public function setEndCursor(string $endCursor): void;

/**
* @return bool
*/
public function getHasPreviousPage(): ?bool;

public function setHasPreviousPage(bool $hasPreviousPage): void;

/**
* @return bool
*/
public function getHasNextPage(): ?bool;

public function setHasNextPage(bool $hasNextPage): void;
Expand Down
2 changes: 0 additions & 2 deletions src/Resolver/TypeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ protected function onLoadSolution($solution): void

/**
* @param string $alias
*
* @return Type
*/
public function resolve($alias): ?Type
{
Expand Down
3 changes: 0 additions & 3 deletions src/Upload/Type/GraphQLUploadType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

final class GraphQLUploadType extends ScalarType
{
/**
* @param string $name
*/
public function __construct(string $name = null)
{
parent::__construct([
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/InputValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(
/**
* @throws ArgumentsValidationException
*/
public function validate(string|array|null $groups = null, bool $throw = true): ?ConstraintViolationListInterface
public function validate(string|array $groups = null, bool $throw = true): ?ConstraintViolationListInterface
{
$rootNode = new ValidationNode(
$this->info->parentType,
Expand Down
6 changes: 3 additions & 3 deletions tests/Config/Parser/fixtures/graphql/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
'type' => 'custom-scalar',
'config' => [
'description' => null,
'serialize' => [\Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
'parseValue' => [\Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
'parseLiteral' => [\Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
'serialize' => [Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
'parseValue' => [Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
'parseLiteral' => [Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
],
],
];

0 comments on commit ca5ec9f

Please sign in to comment.