Skip to content

Commit

Permalink
Merge pull request #20 from casskir/master
Browse files Browse the repository at this point in the history
Add description field to custom-scalar type
  • Loading branch information
mcg-web authored Dec 13, 2017
2 parents a2b3771 + 2eee9a1 commit c7107b1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ matrix:
fast_finish: true
include:
- php: 5.5
env: GRAPHQLPHP_VERSION=0.10.*
- php: 5.6
env: GRAPHQLPHP_VERSION=0.10.*
# - php: 5.6
# env: GRAPHQLPHP_VERSION=0.10.*
- php: 5.6
- php: 7.0
- php: 7.1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"require": {
"php": "^5.4|~7.0",
"webonyx/graphql-php": "^0.10.0 || ^0.11.0"
"webonyx/graphql-php": "^0.11.0"
},
"require-dev": {
"fabpot/php-cs-fixer": "^1.11",
Expand Down
1 change: 1 addition & 0 deletions src/Resources/skeleton/CustomScalarConfig.php.skeleton
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
<spaces>'name' => <name>,
<spaces>'description' => <description>,
<spaces>'serialize' => <serialize>,
<spaces>'parseValue' => <parseValue>,
<spaces>'parseLiteral' => <parseLiteral>,
Expand Down
1 change: 1 addition & 0 deletions tests/StarWarsQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,6 @@ public function testDateTime()
'dateTime' => '2016-01-18 23:00:00',
];
$this->assertValidQuery($query, $expected);
$this->assertEquals('The DateTime type', $this->getType('DateTime')->description);
}
}
1 change: 1 addition & 0 deletions tests/starWarsSchema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DateTime:
type: custom-scalar
config:
description: "The DateTime type"
serialize: ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "serialize"]
parseValue: ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "parseValue"]
parseLiteral: ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "parseLiteral"]
Expand Down

0 comments on commit c7107b1

Please sign in to comment.