File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -33,38 +33,38 @@ public function serialize($value): string
33
33
}
34
34
35
35
/**
36
- * Parses an externally provided value (query variable) to use as an input
36
+ * Parses an externally provided value (query variable) to use as an input.
37
37
*
38
38
* In the case of an invalid value this method must throw an Exception
39
39
*
40
40
* @param mixed $value
41
41
*
42
- * @return mixed
43
- *
44
42
* @throws Error
43
+ *
44
+ * @return mixed
45
45
*/
46
46
public function parseValue ($ value )
47
47
{
48
48
return $ this ->decodeJSON ($ value );
49
49
}
50
50
51
51
/**
52
- * Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input
52
+ * Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.
53
53
*
54
54
* In the case of an invalid node or value this method must throw an Exception
55
55
*
56
56
* @param Node $valueNode
57
57
* @param mixed[]|null $variables
58
58
*
59
- * @return mixed
60
- *
61
59
* @throws Exception
60
+ *
61
+ * @return mixed
62
62
*/
63
63
public function parseLiteral ($ valueNode , ?array $ variables = null )
64
64
{
65
- if (!property_exists ($ valueNode , 'value ' )){
65
+ if (!property_exists ($ valueNode , 'value ' )) {
66
66
throw new Error (
67
- 'Can only parse literals that contain a value, got ' . Utils::printSafeJson ($ valueNode )
67
+ 'Can only parse literals that contain a value, got ' . Utils::printSafeJson ($ valueNode )
68
68
);
69
69
}
70
70
@@ -76,9 +76,9 @@ public function parseLiteral($valueNode, ?array $variables = null)
76
76
*
77
77
* @param mixed $value
78
78
*
79
- * @return mixed
80
- *
81
79
* @throws Error
80
+ *
81
+ * @return mixed
82
82
*/
83
83
protected function decodeJSON ($ value )
84
84
{
You can’t perform that action at this time.
0 commit comments