Skip to content

Commit 58ef38d

Browse files
authored
Merge pull request #171 from wp-cli/fix/use-http-request-helper
2 parents 6d0ee4f + 4bacfe2 commit 58ef38d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Context/FeatureContext.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
88
use Behat\Testwork\Hook\Scope\AfterSuiteScope;
99
use Behat\Testwork\Hook\Scope\BeforeSuiteScope;
10-
use Requests;
1110
use RuntimeException;
1211
use WP_CLI\Process;
1312
use WP_CLI\Utils;
@@ -617,7 +616,7 @@ private function replace_wp_versions( $str ) {
617616
if ( null === $wp_versions ) {
618617
$wp_versions = [];
619618

620-
$response = Requests::get( 'https://api.wordpress.org/core/version-check/1.7/', null, [ 'timeout' => 30 ] );
619+
$response = Utils\http_request( 'GET', 'https://api.wordpress.org/core/version-check/1.7/', null, [], [ 'timeout' => 30 ] );
621620
if ( 200 === $response->status_code ) {
622621
$body = json_decode( $response->body );
623622
if ( is_object( $body ) && isset( $body->offers ) && is_array( $body->offers ) ) {

0 commit comments

Comments
 (0)