diff --git a/src/Constraint/JsonValueMatchesSchema.php b/src/Constraint/JsonValueMatchesSchema.php index c1d28ef..299184c 100644 --- a/src/Constraint/JsonValueMatchesSchema.php +++ b/src/Constraint/JsonValueMatchesSchema.php @@ -30,14 +30,14 @@ public function __construct($schema) } /** - * 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. * * Yell if you can think of something better. * * @param array|stdClass $jsonDocument * @return stdClass */ - private function forceToObject($jsonDocument): stdClass + private function forceToObject($jsonDocument) { if (is_string($jsonDocument)) { return json_decode($jsonDocument);