mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -34,9 +34,9 @@ trait Request
|
||||
* @param string[] $usage names of tracked behaviors associated with this request
|
||||
* @param 'v1'|'v2' $apiMode
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return array tuple containing (the JSON response, $options)
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
protected function _request($method, $url, $params = [], $options = null, $usage = [], $apiMode = 'v1')
|
||||
{
|
||||
@@ -49,14 +49,14 @@ trait Request
|
||||
|
||||
/**
|
||||
* @param string $url URL for the request
|
||||
* @param class-string< \Stripe\SearchResult|\Stripe\Collection > $resultClass indicating what type of paginated result is returned
|
||||
* @param class-string< \Stripe\Collection|\Stripe\SearchResult > $resultClass indicating what type of paginated result is returned
|
||||
* @param null|array $params list of parameters for the request
|
||||
* @param null|array|string $options
|
||||
* @param string[] $usage names of tracked behaviors associated with this request
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return \Stripe\Collection|\Stripe\SearchResult
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
protected static function _requestPage($url, $resultClass, $params = null, $options = null, $usage = [])
|
||||
{
|
||||
@@ -64,7 +64,7 @@ trait Request
|
||||
|
||||
list($response, $opts) = static::_staticRequest('get', $url, $params, $options, $usage);
|
||||
$obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
|
||||
if (!($obj instanceof $resultClass)) {
|
||||
if (!$obj instanceof $resultClass) {
|
||||
throw new \Stripe\Exception\UnexpectedValueException(
|
||||
'Expected type ' . $resultClass . ', got "' . \get_class($obj) . '" instead.'
|
||||
);
|
||||
@@ -99,9 +99,9 @@ trait Request
|
||||
* @param string[] $usage names of tracked behaviors associated with this request
|
||||
* @param 'v1'|'v2' $apiMode
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return array tuple containing (the JSON response, $options)
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*/
|
||||
protected static function _staticRequest($method, $url, $params, $options, $usage = [], $apiMode = 'v1')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user