Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Response.php

function Response::assertStatusCodeIsInteger

Parameters

mixed $statusCode:

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

File

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

Class

Response
PSR-7 response implementation.

Namespace

GuzzleHttp\Psr7

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal