1
0
Fork 0
mirror of synced 2024-07-15 19:36:08 +12:00

Passthru JSON objects

This commit is contained in:
Jake Barnby 2022-10-11 12:32:04 +13:00
parent 0716c430d6
commit 62038bd2a9
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 2 additions and 4 deletions

View file

@ -445,8 +445,6 @@ class TypeMapper
private static function getHashOptionsImplementation(array $object): Type private static function getHashOptionsImplementation(array $object): Type
{ {
\var_dump($object);
switch ($object['type']) { switch ($object['type']) {
case 'argon2': case 'argon2':
return static::fromResponseModel('AlgoArgon2'); return static::fromResponseModel('AlgoArgon2');

View file

@ -21,12 +21,12 @@ class Json extends ScalarType
public function serialize($value) public function serialize($value)
{ {
return \json_encode($value); return $value;
} }
public function parseValue($value) public function parseValue($value)
{ {
return \json_decode($value, associative: true); return $value;
} }
public function parseLiteral(Node $valueNode, ?array $variables = null) public function parseLiteral(Node $valueNode, ?array $variables = null)