@@ -164,15 +164,15 @@ public function xmlHttpRequest(string $method, string $uri, array $parameters =
164
164
/**
165
165
* Converts the request parameters into a json string and use it as request content.
166
166
*/
167
- public function jsonRequest (string $ method , string $ uri , array $ parameters = [], array $ files = [], array $ server = [], bool $ changeHistory = true ): Crawler
167
+ public function jsonRequest (string $ method , string $ uri , array $ parameters = [], array $ server = [], bool $ changeHistory = true ): Crawler
168
168
{
169
169
$ content = json_encode ($ parameters );
170
170
171
171
$ this ->setServerParameter ('CONTENT_TYPE ' , 'application/json ' );
172
172
$ this ->setServerParameter ('HTTP_ACCEPT ' , 'application/json ' );
173
173
174
174
try {
175
- return $ this ->request ($ method , $ uri , [], $ files , $ server , $ content , $ changeHistory );
175
+ return $ this ->request ($ method , $ uri , [], [] , $ server , $ content , $ changeHistory );
176
176
} finally {
177
177
unset($ this ->server ['CONTENT_TYPE ' ]);
178
178
unset($ this ->server ['HTTP_ACCEPT ' ]);
@@ -455,7 +455,7 @@ protected function doRequestInProcess($request)
455
455
foreach ($ deprecations ? unserialize ($ deprecations ) : [] as $ deprecation ) {
456
456
if ($ deprecation [0 ]) {
457
457
// unsilenced on purpose
458
- @ trigger_error ($ deprecation [1 ], \E_USER_DEPRECATED );
458
+ trigger_error ($ deprecation [1 ], \E_USER_DEPRECATED );
459
459
} else {
460
460
@trigger_error ($ deprecation [1 ], \E_USER_DEPRECATED );
461
461
}
0 commit comments