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.
2 parents d977ebc + 4af8d1a commit d8b2ee2Copy full SHA for d8b2ee2
src/Constraint/JsonValueMatchesSchema.php
@@ -30,14 +30,14 @@ public function __construct($schema)
30
}
31
32
/**
33
- * VERY dirty hack to force a JSON document into an instance of the stdClass class.
+ * VERY dirty hack to force a JSON document into an object.
34
*
35
* Yell if you can think of something better.
36
37
* @param array|stdClass $jsonDocument
38
* @return stdClass
39
*/
40
- private function forceToObject($jsonDocument): stdClass
+ private function forceToObject($jsonDocument)
41
{
42
if (is_string($jsonDocument)) {
43
return json_decode($jsonDocument);
0 commit comments