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
3333 }
3434
3535 /**
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.
3737 *
3838 * In the case of an invalid value this method must throw an Exception
3939 *
4040 * @param mixed $value
4141 *
42- * @return mixed
43- *
4442 * @throws Error
43+ *
44+ * @return mixed
4545 */
4646 public function parseValue ($ value )
4747 {
4848 return $ this ->decodeJSON ($ value );
4949 }
5050
5151 /**
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.
5353 *
5454 * In the case of an invalid node or value this method must throw an Exception
5555 *
5656 * @param Node $valueNode
5757 * @param mixed[]|null $variables
5858 *
59- * @return mixed
60- *
6159 * @throws Exception
60+ *
61+ * @return mixed
6262 */
6363 public function parseLiteral ($ valueNode , ?array $ variables = null )
6464 {
65- if (!property_exists ($ valueNode , 'value ' )){
65+ if (!property_exists ($ valueNode , 'value ' )) {
6666 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 )
6868 );
6969 }
7070
@@ -76,9 +76,9 @@ public function parseLiteral($valueNode, ?array $variables = null)
7676 *
7777 * @param mixed $value
7878 *
79- * @return mixed
80- *
8179 * @throws Error
80+ *
81+ * @return mixed
8282 */
8383 protected function decodeJSON ($ value )
8484 {
You can’t perform that action at this time.
0 commit comments