Skip to content

Commit 1a87ffe

Browse files
committed
Upgrade to graphql-php 0.12.0
1 parent 1044c70 commit 1a87ffe

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"php": "^7.1",
2727
"psr/http-server-middleware": "^1.0",
28-
"webonyx/graphql-php": "^0.11.5"
28+
"webonyx/graphql-php": "^0.12.0"
2929
},
3030
"require-dev": {
3131
"friendsofphp/php-cs-fixer": "^2.9",

composer.lock

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

src/UploadType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ public function parseValue($value)
5656
* Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input
5757
*
5858
* @param \GraphQL\Language\AST\Node $valueNode
59+
* @param null|array $variables
5960
*
6061
* @return mixed
6162
*/
62-
public function parseLiteral($valueNode)
63+
public function parseLiteral($valueNode, array $variables = null)
6364
{
6465
throw new Error('`Upload` cannot be hardcoded in query, be sure to conform to GraphQL multipart request specification. Instead got: ' . $valueNode->kind, [$valueNode]);
6566
}

tests/UploadTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function testCannotParseNonUploadedFileInstance(): void
2525
{
2626
$type = new UploadType();
2727
$this->expectException(\UnexpectedValueException::class);
28-
$this->expectExceptionMessage('Could not get uploaded file, be sure to conform to GraphQL multipart request specification. Instead got: "foo"');
28+
$this->expectExceptionMessage('Could not get uploaded file, be sure to conform to GraphQL multipart request specification. Instead got: foo');
2929

3030
$type->parseValue('foo');
3131
}

0 commit comments

Comments
 (0)