diff --git a/src/ObjectTrait.php b/src/ObjectTrait.php index 15e2dc8..1806e66 100644 --- a/src/ObjectTrait.php +++ b/src/ObjectTrait.php @@ -54,7 +54,8 @@ public function validatePartially(array $requiredFields) : bool private function validateData($data, $schema) : bool { - $validation = (new Validator())->schemaValidation($data, $schema); + $validation = (new Validator()) + ->schemaValidation($data, $schema); if (!$validation->isValid()) { $errors = $validation->getErrors(); $message = 'Data validation failed.' . PHP_EOL;