You are here

private function Response::assertStatusCodeIsInteger in Auth0 Single Sign On 8.2

2 calls to Response::assertStatusCodeIsInteger()
Response::withStatus in vendor/guzzlehttp/psr7/src/Response.php
Return an instance with the specified status code and, optionally, reason phrase.
Response::__construct in vendor/guzzlehttp/psr7/src/Response.php

File

vendor/guzzlehttp/psr7/src/Response.php, line 141

Class

Response
PSR-7 response implementation.

Namespace

GuzzleHttp\Psr7

Code

private function assertStatusCodeIsInteger($statusCode) {
  if (filter_var($statusCode, FILTER_VALIDATE_INT) === false) {
    throw new \InvalidArgumentException('Status code must be an integer value.');
  }
}