Plugin Directory

Changeset 3324855


Ignore:
Timestamp:
07/09/2025 09:26:56 AM (9 months ago)
Author:
hyperpayproducts
Message:

fix spread to merge

Location:
hyperpay-gateways
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hyperpay-gateways/tags/5.3.1/src/App/Http.php

    r3324317 r3324855  
    1313    public static function post($url, $data = [])
    1414    {
    15         $response = wp_remote_post($url, [...$data, 'timeout' => 10000]); // 10 seconds timeout
     15        $response = wp_remote_post($url, \array_merge($data, ['timeout' => 10000])); // 10 seconds timeout
    1616        return self::handelResponse($response);
    1717    }
     
    1919    public static function get($url, $options = [])
    2020    {
    21         $response = wp_remote_get($url, [...$options, 'timeout' => 10000]); // 10 seconds timeout
     21        $response = wp_remote_get($url, \array_merge($options, ['timeout' => 10000])); // 10 seconds timeout
    2222        return self::handelResponse($response);
    2323    }
  • hyperpay-gateways/trunk/src/App/Http.php

    r3324312 r3324855  
    1313    public static function post($url, $data = [])
    1414    {
    15         $response = wp_remote_post($url, [...$data, 'timeout' => 10000]); // 10 seconds timeout
     15        $response = wp_remote_post($url, \array_merge($data, ['timeout' => 10000])); // 10 seconds timeout
    1616        return self::handelResponse($response);
    1717    }
     
    1919    public static function get($url, $options = [])
    2020    {
    21         $response = wp_remote_get($url, [...$options, 'timeout' => 10000]); // 10 seconds timeout
     21        $response = wp_remote_get($url, \array_merge($options, ['timeout' => 10000])); // 10 seconds timeout
    2222        return self::handelResponse($response);
    2323    }
Note: See TracChangeset for help on using the changeset viewer.