Skip to content

Commit

Permalink
Use Elvis Operator to support PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter committed Aug 15, 2022
1 parent 6b46345 commit 5ec7828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RemoteRequest/StubbedRemoteGetRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ public function get($url, $headers = [])
}

$args = $this->argumentMap[$url];
return new RemoteGetRequestResponse($args['body'], [], $args['status'] ?? 200);
return new RemoteGetRequestResponse($args['body'], [], $args['status'] ?: 200);
}
}

0 comments on commit 5ec7828

Please sign in to comment.