We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parseValue
1 parent 2023b42 commit 5f5c811Copy full SHA for 5f5c811
src/Type/Definition/IDType.php
@@ -55,9 +55,6 @@ public function serialize($value)
55
*/
56
public function parseValue($value)
57
{
58
- if (!is_scalar($value)) {
59
- throw new Error("ID type cannot represent non scalar value: " . Utils::printSafeJson($value));
60
- }
61
return (is_string($value) || is_int($value)) ? (string) $value : null;
62
}
63
src/Type/Definition/StringType.php
@@ -52,9 +52,6 @@ public function serialize($value)
52
53
54
- throw new Error("String cannot represent non scalar value: " . Utils::printSafe($value));
return is_string($value) ? $value : null;
0 commit comments