Skip to content

Commit ca5ec9f

Browse files
committed
Fix CS
1 parent ddb6c93 commit ca5ec9f

File tree

9 files changed

+6
-36
lines changed

9 files changed

+6
-36
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: "Install PHP"
117117
uses: "shivammathur/setup-php@v2"
118118
with:
119-
php-version: "8.2"
119+
php-version: "8.1"
120120
coverage: "none"
121121

122122
- name: "Install dependencies"

src/Config/TypeDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ protected function validationSection(int $level): ArrayNodeDefinition
8181
return $value;
8282
}
8383
}
84+
8485
// validation: [list of constraints]
8586
return ['constraints' => $value];
8687
}

src/Relay/Connection/ConnectionInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public function setEdges(iterable $edges): void;
2727

2828
/**
2929
* Get the page info.
30-
*
31-
* @return PageInfoInterface
3230
*/
3331
public function getPageInfo(): ?PageInfoInterface;
3432

src/Relay/Connection/Output/PageInfo.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ public function __construct(string $startCursor = null, string $endCursor = null
2323
$this->hasNextPage = $hasNextPage;
2424
}
2525

26-
/**
27-
* @return string
28-
*/
2926
public function getStartCursor(): ?string
3027
{
3128
return $this->startCursor;
@@ -36,9 +33,6 @@ public function setStartCursor(string $startCursor): void
3633
$this->startCursor = $startCursor;
3734
}
3835

39-
/**
40-
* @return string
41-
*/
4236
public function getEndCursor(): ?string
4337
{
4438
return $this->endCursor;
@@ -49,9 +43,6 @@ public function setEndCursor(string $endCursor): void
4943
$this->endCursor = $endCursor;
5044
}
5145

52-
/**
53-
* @return bool
54-
*/
5546
public function getHasPreviousPage(): ?bool
5647
{
5748
return $this->hasPreviousPage;
@@ -62,9 +53,6 @@ public function setHasPreviousPage(bool $hasPreviousPage): void
6253
$this->hasPreviousPage = $hasPreviousPage;
6354
}
6455

65-
/**
66-
* @return bool
67-
*/
6856
public function getHasNextPage(): ?bool
6957
{
7058
return $this->hasNextPage;

src/Relay/Connection/PageInfoInterface.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,18 @@
1212

1313
interface PageInfoInterface
1414
{
15-
/**
16-
* @return string
17-
*/
1815
public function getStartCursor(): ?string;
1916

2017
public function setStartCursor(string $startCursor): void;
2118

22-
/**
23-
* @return string
24-
*/
2519
public function getEndCursor(): ?string;
2620

2721
public function setEndCursor(string $endCursor): void;
2822

29-
/**
30-
* @return bool
31-
*/
3223
public function getHasPreviousPage(): ?bool;
3324

3425
public function setHasPreviousPage(bool $hasPreviousPage): void;
3526

36-
/**
37-
* @return bool
38-
*/
3927
public function getHasNextPage(): ?bool;
4028

4129
public function setHasNextPage(bool $hasNextPage): void;

src/Resolver/TypeResolver.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ protected function onLoadSolution($solution): void
4646

4747
/**
4848
* @param string $alias
49-
*
50-
* @return Type
5149
*/
5250
public function resolve($alias): ?Type
5351
{

src/Upload/Type/GraphQLUploadType.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
final class GraphQLUploadType extends ScalarType
1616
{
17-
/**
18-
* @param string $name
19-
*/
2017
public function __construct(string $name = null)
2118
{
2219
parent::__construct([

src/Validator/InputValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(
6363
/**
6464
* @throws ArgumentsValidationException
6565
*/
66-
public function validate(string|array|null $groups = null, bool $throw = true): ?ConstraintViolationListInterface
66+
public function validate(string|array $groups = null, bool $throw = true): ?ConstraintViolationListInterface
6767
{
6868
$rootNode = new ValidationNode(
6969
$this->info->parentType,

tests/Config/Parser/fixtures/graphql/schema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@
159159
'type' => 'custom-scalar',
160160
'config' => [
161161
'description' => null,
162-
'serialize' => [\Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
163-
'parseValue' => [\Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
164-
'parseLiteral' => [\Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
162+
'serialize' => [Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
163+
'parseValue' => [Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
164+
'parseLiteral' => [Overblog\GraphQLBundle\Config\Parser\GraphQL\ASTConverter\CustomScalarNode::class, 'mustOverrideConfig'],
165165
],
166166
],
167167
];

0 commit comments

Comments
 (0)