Skip to content

Commit f6fd4f1

Browse files
committed
Upgrade to graphpinator 1.0 rc12
1 parent 2ae9285 commit f6fd4f1

9 files changed

+120
-73
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"infinityloop-dev/graphpinator": "^1.0-rc10+3",
15+
"infinityloop-dev/graphpinator": "^1.0-rc12",
1616
"infinityloop-dev/utils": "^2.1.2",
1717
"nette/utils": "^3.2"
1818
},

composer.lock

Lines changed: 106 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/FloatConstraintDirective.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ public function validateFieldUsage(
1414
\Graphpinator\Value\ArgumentValueSet $arguments,
1515
) : bool
1616
{
17-
return $field->getType()->getNamedType() instanceof \Graphpinator\Type\Scalar\FloatType;
17+
return $field->getType()->getNamedType() instanceof \Graphpinator\Type\Spec\FloatType;
1818
}
1919

2020
public function validateArgumentUsage(
2121
\Graphpinator\Argument\Argument $argument,
2222
\Graphpinator\Value\ArgumentValueSet $arguments,
2323
): bool
2424
{
25-
return $argument->getType()->getNamedType() instanceof \Graphpinator\Type\Scalar\FloatType;
25+
return $argument->getType()->getNamedType() instanceof \Graphpinator\Type\Spec\FloatType;
2626
}
2727

2828
protected function getFieldDefinition() : \Graphpinator\Argument\ArgumentSet

src/IntConstraintDirective.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ public function validateFieldUsage(
1414
\Graphpinator\Value\ArgumentValueSet $arguments,
1515
) : bool
1616
{
17-
return $field->getType()->getNamedType() instanceof \Graphpinator\Type\Scalar\IntType;
17+
return $field->getType()->getNamedType() instanceof \Graphpinator\Type\Spec\IntType;
1818
}
1919

2020
public function validateArgumentUsage(
2121
\Graphpinator\Argument\Argument $argument,
2222
\Graphpinator\Value\ArgumentValueSet $arguments,
2323
): bool
2424
{
25-
return $argument->getType()->getNamedType() instanceof \Graphpinator\Type\Scalar\IntType;
25+
return $argument->getType()->getNamedType() instanceof \Graphpinator\Type\Spec\IntType;
2626
}
2727

2828
protected function getFieldDefinition() : \Graphpinator\Argument\ArgumentSet

src/StringConstraintDirective.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public function validateFieldUsage(
1616
{
1717
$namedType = $field->getType()->getNamedType();
1818

19-
return $namedType instanceof \Graphpinator\Type\Scalar\StringType
20-
|| $namedType instanceof \Graphpinator\Type\Scalar\IdType;
19+
return $namedType instanceof \Graphpinator\Type\Spec\StringType
20+
|| $namedType instanceof \Graphpinator\Type\Spec\IdType;
2121
}
2222

2323
public function validateArgumentUsage(
@@ -27,8 +27,8 @@ public function validateArgumentUsage(
2727
{
2828
$namedType = $argument->getType()->getNamedType();
2929

30-
return $namedType instanceof \Graphpinator\Type\Scalar\StringType
31-
|| $namedType instanceof \Graphpinator\Type\Scalar\IdType;
30+
return $namedType instanceof \Graphpinator\Type\Spec\StringType
31+
|| $namedType instanceof \Graphpinator\Type\Spec\IdType;
3232
}
3333

3434
protected function getFieldDefinition() : \Graphpinator\Argument\ArgumentSet

tests/Integration/FloatVarianceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(
8686
private array $directiveArgs,
8787
)
8888
{
89-
parent::__construct(new \Graphpinator\Utils\InterfaceSet([$interface]));
89+
parent::__construct(new \Graphpinator\Type\InterfaceSet([$interface]));
9090
}
9191

9292
protected function getFieldDefinition() : \Graphpinator\Field\FieldSet

tests/Integration/IntVarianceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(
8686
private array $directiveArgs,
8787
)
8888
{
89-
parent::__construct(new \Graphpinator\Utils\InterfaceSet([$interface]));
89+
parent::__construct(new \Graphpinator\Type\InterfaceSet([$interface]));
9090
}
9191

9292
protected function getFieldDefinition() : \Graphpinator\Field\FieldSet

tests/Integration/ListVarianceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(
8686
private array $directiveArgs,
8787
)
8888
{
89-
parent::__construct(new \Graphpinator\Utils\InterfaceSet([$interface]));
89+
parent::__construct(new \Graphpinator\Type\InterfaceSet([$interface]));
9090
}
9191

9292
protected function getFieldDefinition() : \Graphpinator\Field\FieldSet
@@ -186,7 +186,7 @@ public function __construct(
186186
private array $directiveArgs,
187187
)
188188
{
189-
parent::__construct(new \Graphpinator\Utils\InterfaceSet([$interface]));
189+
parent::__construct(new \Graphpinator\Type\InterfaceSet([$interface]));
190190
}
191191

192192
protected function getFieldDefinition() : \Graphpinator\Field\FieldSet

tests/Integration/StringVarianceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __construct(
9393
private array $directiveArgs,
9494
)
9595
{
96-
parent::__construct(new \Graphpinator\Utils\InterfaceSet([$interface]));
96+
parent::__construct(new \Graphpinator\Type\InterfaceSet([$interface]));
9797
}
9898

9999
protected function getFieldDefinition() : \Graphpinator\Field\FieldSet

0 commit comments

Comments
 (0)