Skip to content

Commit d21a434

Browse files
committed
Improve request validator vol 2
1 parent 5231036 commit d21a434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lodash/Http/Requests/RestrictsExtraAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait RestrictsExtraAttributes
2323
{
2424
protected bool $checkForExtraProperties = true;
2525
protected bool $checkForEmptyPayload = true;
26-
protected array $methodsForEmptyPayload = ['PATCH'];
26+
protected array $methodsForEmptyPayload = ['PATCH', 'POST', 'PUT'];
2727

2828
protected function prepareForValidation(): void
2929
{

0 commit comments

Comments
 (0)