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.
1 parent 1460e52 commit c68eb35Copy full SHA for c68eb35
src/Validator/Attributes/RulesValidator.php
@@ -19,6 +19,7 @@
19
namespace CloudCreativity\JsonApi\Validator\Attributes;
20
21
use CloudCreativity\JsonApi\Contracts\Error\ErrorObjectInterface;
22
+use CloudCreativity\JsonApi\Object\ObjectUtils;
23
use CloudCreativity\JsonApi\Validator\AbstractValidator;
24
use CloudCreativity\JsonApi\Validator\Helper\RequiredTrait;
25
use Illuminate\Contracts\Support\MessageBag;
@@ -146,7 +147,7 @@ protected function validate($value)
146
147
return;
148
}
149
- $validator = $this->make(get_object_vars($value));
150
+ $validator = $this->make(ObjectUtils::toArray($value));
151
152
if ($validator->fails()) {
153
$this->error(static::ERROR_VALIDATION_FAILED);
0 commit comments