Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ilic <[email protected]>
  • Loading branch information
gigili committed Jul 25, 2021
1 parent d142ab5 commit eedfe37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Request
public function __construct()
{
$input = json_decode(file_get_contents('php://input')) ?? [];
if ( $_SERVER['REQUEST_METHOD'] == 'PATCH' ) {
if ( isset($_SERVER["REQUEST_METHOD"]) && $_SERVER['REQUEST_METHOD'] == 'PATCH' ) {
if ( isset($_REQUEST["parameters"]) ) {
$_REQUEST = array_merge($_REQUEST, $_REQUEST['parameters']);
}
Expand Down

0 comments on commit eedfe37

Please sign in to comment.