Response

Illuminate\Http\Client\Response

class src/Illuminate/Http/Client/Response.php

__call

v11.0.0 以前から

__call($method, $parameters)
@param string $method
@param array $parameters
@return mixed
  1. v11.0.0 追加
    変更後
    __call($method, $parameters) [@param string $method, @param array $parameters, @return mixed]

__construct

v11.0.0 以前から

__construct($response)
@param \Psr\Http\Message\MessageInterface $response
  1. v11.0.0 追加
    変更後
    __construct($response) [@param \Psr\Http\Message\MessageInterface $response, @return void]
  2. v12.4.0 シグネチャ変更
    変更前
    __construct($response) [@param \Psr\Http\Message\MessageInterface $response, @return void]
    変更後
    __construct($response) [@param \Psr\Http\Message\MessageInterface $response]

__toString

v11.0.0 以前から

__toString()
@return string
  1. v11.0.0 追加
    変更後
    __toString() [@return string]

body

v11.0.0 以前から

body()
@return string
  1. v11.0.0 追加
    変更後
    body() [@return string]

clientError

v11.0.0 以前から

clientError()
@return bool
  1. v11.0.0 追加
    変更後
    clientError() [@return bool]

close

v11.0.0 以前から

close()
@return $this
  1. v11.0.0 追加
    変更後
    close() [@return $this]

collect

v11.0.0 以前から

collect($key = null, $flags = null)
@param string|null $key
@param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags
@return \Illuminate\Support\Collection
  1. v11.0.0 追加
    変更後
    collect($key = null) [@param string|null $key, @return \Illuminate\Support\Collection]
  2. v12.48.0 シグネチャ変更
    変更前
    collect($key = null) [@param string|null $key, @return \Illuminate\Support\Collection]
    変更後
    collect($key = null, $flags = null) [@param string|null $key, @param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags, @return \Illuminate\Support\Collection]

cookies

v11.0.0 以前から

cookies()
@return \GuzzleHttp\Cookie\CookieJar
  1. v11.0.0 追加
    変更後
    cookies() [@return \GuzzleHttp\Cookie\CookieJar]

dd

v11.40.0 から

dd($key = null)
@param string|null $key
@return never
  1. v11.40.0 追加
    変更後
    dd($key = null) [@param string|null $key, @return never]

ddHeaders

v11.40.0 から

ddHeaders()
@return never
  1. v11.40.0 追加
    変更後
    ddHeaders() [@return never]

dontTruncateExceptions

v12.18.0 から

dontTruncateExceptions()
@return $this
  1. v12.18.0 追加
    変更後
    dontTruncateExceptions() [@return $this]

dump

v11.40.0 から

dump($key = null)
@param string|null $key
@return $this
  1. v11.40.0 追加
    変更後
    dump($key = null) [@param string|null $key, @return $this]

dumpHeaders

v11.40.0 から

dumpHeaders()
@return $this
  1. v11.40.0 追加
    変更後
    dumpHeaders() [@return $this]

effectiveUri

v11.0.0 以前から

effectiveUri()
@return \Psr\Http\Message\UriInterface|null
  1. v11.0.0 追加
    変更後
    effectiveUri() [@return \Psr\Http\Message\UriInterface|null]

failed

v11.0.0 以前から

failed()
@return bool
  1. v11.0.0 追加
    変更後
    failed() [@return bool]

fluent

v11.35.0 から

fluent($key = null, $flags = null)
@param string|null $key
@param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags
@return \Illuminate\Support\Fluent
  1. v11.35.0 追加
    変更後
    fluent($key = null) [@param string|null $key, @return \Illuminate\Support\Fluent]
  2. v12.48.0 シグネチャ変更
    変更前
    fluent($key = null) [@param string|null $key, @return \Illuminate\Support\Fluent]
    変更後
    fluent($key = null, $flags = null) [@param string|null $key, @param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags, @return \Illuminate\Support\Fluent]

flushState

v12.48.0 から

static

static flushState(): void
  1. v12.48.0 追加
    変更後
    static flushState(): void

handlerStats

v11.0.0 以前から

handlerStats()
@return array
  1. v11.0.0 追加
    変更後
    handlerStats() [@return array]

headers

v11.0.0 以前から

headers()
@return array
  1. v11.0.0 追加
    変更後
    headers() [@return array]

json

v11.0.0 以前から

json($key = null, $default = null, $flags = null)
@param string|null $key
@param mixed $default
@param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags
@return mixed
  1. v11.0.0 追加
    変更後
    json($key = null, $default = null) [@param string|null $key, @param mixed $default, @return mixed]
  2. v12.48.0 シグネチャ変更
    変更前
    json($key = null, $default = null) [@param string|null $key, @param mixed $default, @return mixed]
    変更後
    json($key = null, $default = null, $flags = null) [@param string|null $key, @param mixed $default, @param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags, @return mixed]

object

v11.0.0 以前から

object($flags = null)
@param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags
@return object|null
  1. v11.0.0 追加
    変更後
    object() [@return object|null]
  2. v12.48.0 シグネチャ変更
    変更前
    object() [@return object|null]
    変更後
    object($flags = null) [@param int-mask<JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE, JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR>|null $flags, @return object|null]

offsetExists

v11.0.0 以前から

offsetExists($offset): bool
@param string $offset
@return bool
  1. v11.0.0 追加
    変更後
    offsetExists($offset): bool [@param string $offset, @return bool]

offsetGet

v11.0.0 以前から

offsetGet($offset): mixed
@param string $offset
@return mixed
  1. v11.0.0 追加
    変更後
    offsetGet($offset): mixed [@param string $offset, @return mixed]

offsetSet

v11.0.0 以前から

offsetSet($offset, $value): void
@param string $offset
@param mixed $value
@return void
  1. v11.0.0 追加
    変更後
    offsetSet($offset, $value): void [@param string $offset, @param mixed $value, @return void]

offsetUnset

v11.0.0 以前から

offsetUnset($offset): void
@param string $offset
@return void
  1. v11.0.0 追加
    変更後
    offsetUnset($offset): void [@param string $offset, @return void]

onError

v11.0.0 以前から

onError(callable $callback)
@param callable|(\Closure(\Illuminate\Http\Client\Response): mixed) $callback
@return $this
  1. v11.0.0 追加
    変更後
    onError(callable $callback) [@param callable $callback, @return $this]
  2. v12.14.0 シグネチャ変更
    変更前
    onError(callable $callback) [@param callable $callback, @return $this]
    変更後
    onError(callable $callback) [@param callable|(\Closure(\Illuminate\Http\Client\Response): mixed) $callback, @return $this]

reason

v11.0.0 以前から

reason()
@return string
  1. v11.0.0 追加
    変更後
    reason() [@return string]

redirect

v11.0.0 以前から

redirect()
@return bool
  1. v11.0.0 追加
    変更後
    redirect() [@return bool]

resource

v11.21.0 から

resource()
@return resource
  1. v11.21.0 追加
    変更後
    resource() [@return resource]

serverError

v11.0.0 以前から

serverError()
@return bool
  1. v11.0.0 追加
    変更後
    serverError() [@return bool]

status

v11.0.0 以前から

status()
@return int
  1. v11.0.0 追加
    変更後
    status() [@return int]

successful

v11.0.0 以前から

successful()
@return bool
  1. v11.0.0 追加
    変更後
    successful() [@return bool]

throw

v11.0.0 以前から

throw($callback = null)
@param null|(\Closure(\Illuminate\Http\Client\Response, \Illuminate\Http\Client\RequestException): mixed) $callback
@return $this
  1. v11.0.0 追加
    変更後
    throw() [@return $this]
  2. v13.0.0 シグネチャ変更
    変更前
    throw() [@return $this]
    変更後
    throw($callback = null) [@param null|(\Closure(\Illuminate\Http\Client\Response, \Illuminate\Http\Client\RequestException): mixed) $callback, @return $this]

throwIf

v11.0.0 以前から

throwIf($condition, $callback = null)
@param \Closure|bool $condition
@param null|(\Closure(\Illuminate\Http\Client\Response, \Illuminate\Http\Client\RequestException): mixed) $callback
@return $this
  1. v11.0.0 追加
    変更後
    throwIf($condition) [@param \Closure|bool $condition, @return $this]
  2. v13.0.0 シグネチャ変更
    変更前
    throwIf($condition) [@param \Closure|bool $condition, @return $this]
    変更後
    throwIf($condition, $callback = null) [@param \Closure|bool $condition, @param null|(\Closure(\Illuminate\Http\Client\Response, \Illuminate\Http\Client\RequestException): mixed) $callback, @return $this]

throwIfClientError

v11.0.0 以前から

throwIfClientError()
@return $this
  1. v11.0.0 追加
    変更後
    throwIfClientError() [@return $this]

throwIfServerError

v11.0.0 以前から

throwIfServerError()
@return $this
  1. v11.0.0 追加
    変更後
    throwIfServerError() [@return $this]

throwIfStatus

v11.0.0 以前から

throwIfStatus($statusCode)
@param int|(\Closure(int, \Illuminate\Http\Client\Response): bool)|callable $statusCode
@return $this
  1. v11.0.0 追加
    変更後
    throwIfStatus($statusCode) [@param callable|int $statusCode, @return $this]
  2. v12.14.0 シグネチャ変更
    変更前
    throwIfStatus($statusCode) [@param callable|int $statusCode, @return $this]
    変更後
    throwIfStatus($statusCode) [@param int|(\Closure(int, \Illuminate\Http\Client\Response): bool)|callable $statusCode, @return $this]

throwUnless

v12.41.0 から

throwUnless($condition)
@param \Closure|bool $condition
@return $this
  1. v12.41.0 追加
    変更後
    throwUnless($condition) [@param \Closure|bool $condition, @return $this]

throwUnlessStatus

v11.0.0 以前から

throwUnlessStatus($statusCode)
@param int|(\Closure(int, \Illuminate\Http\Client\Response): bool)|callable $statusCode
@return $this
  1. v11.0.0 追加
    変更後
    throwUnlessStatus($statusCode) [@param callable|int $statusCode, @return $this]
  2. v12.14.0 シグネチャ変更
    変更前
    throwUnlessStatus($statusCode) [@param callable|int $statusCode, @return $this]
    変更後
    throwUnlessStatus($statusCode) [@param int|(\Closure(int, \Illuminate\Http\Client\Response): bool)|callable $statusCode, @return $this]

toException

v11.0.0 以前から

toException()
@return \Illuminate\Http\Client\RequestException|null
  1. v11.0.0 追加
    変更後
    toException() [@return \Illuminate\Http\Client\RequestException|null]

toPsrResponse

v11.0.0 以前から

toPsrResponse()
@return \Psr\Http\Message\ResponseInterface
  1. v11.0.0 追加
    変更後
    toPsrResponse() [@return \Psr\Http\Message\ResponseInterface]

truncateExceptionsAt

v12.18.0 から

truncateExceptionsAt(int $length)
@param int<1, max> $length
@return $this
  1. v12.18.0 追加
    変更後
    truncateExceptionsAt(int $length) [@param int<1, max> $length, @return $this]