10000 Very minor changes. · rubinred/laravel-json-api@d4aa1e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4aa1e5

Browse files
committed
Very minor changes.
1 parent 290f55d commit d4aa1e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Responses/ResponsesHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function content($data, array $links = [], $meta = null, $statusCode = Re
9898
* @param array $links
9999
* @param mixed|null $meta
100100
* @param array $headers
101-
* @return mixed
101+
* @return Response
102102
*/
103103
public function created($resource, array $links = [], $meta = null, array $headers = [])
104104
{

src/Validator/Attributes/RulesValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RulesValidator extends AbstractValidator
3434
],
3535
self::ERROR_VALIDATION_FAILED => [
3636
ErrorObjectInterface::CODE => self::ERROR_VALIDATION_FAILED,
37-
ErrorObjectInterface::STATUS => 400,
37+
ErrorObjectInterface::STATUS => 422,
3838
ErrorObjectInterface::TITLE => 'Invalid Attributes',
3939
ErrorObjectInterface::DETAIL => 'The provided attributes are invalid.',
4040
],

0 commit comments

Comments
 (0)
0