File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,6 @@ public function invalidValuesProvider(): array
181
181
['integrations ' , [1 ]],
182
182
['integrations ' , 'a string ' ],
183
183
['logger ' , []],
184
- ['max_request_body_size ' , null ],
185
- ['max_request_body_size ' , 'invalid ' ],
186
184
['max_breadcrumbs ' , -1 ],
187
185
['max_breadcrumbs ' , 'string ' ],
188
186
['max_value_length ' , -1 ],
@@ -207,6 +205,11 @@ public function invalidValuesProvider(): array
207
205
$ values [] = ['class_serializers ' , -1 ];
208
206
}
209
207
208
+ if ($ this ->maxRequestBodySizeIsSupported ()) {
209
+ $ values [] = ['max_request_body_size ' , null ];
210
+ $ values [] = ['max_request_body_size ' , 'invalid ' ];
211
+ }
212
+
210
213
return $ values ;
211
214
}
212
215
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ public function optionsValueProvider(): array
122
122
['excluded_exceptions ' , [\Throwable::class]],
123
123
['http_proxy ' , '1.2.3.4 ' ],
124
124
['logger ' , 'sentry-logger ' ],
125
- ['max_request_body_size ' , 'always ' ],
126
125
['max_breadcrumbs ' , 15 ],
127
126
['max_value_length ' , 1000 ],
128
127
['prefixes ' , ['/some/path/prefix/ ' ]],
@@ -149,6 +148,10 @@ public function optionsValueProvider(): array
149
148
];
150
149
}
151
150
151
+ if ($ this ->maxRequestBodySizeIsSupported ()) {
152
+ $ options [] = ['max_request_body_size ' , 'always ' ];
153
+ }
154
+
152
155
return $ options ;
153
156
}
154
157
You can’t perform that action at this time.
0 commit comments