Requests 2.0.0 API

InvalidArgument extends InvalidArgumentException
in package

Exception for an invalid argument passed.

Tags
since
2.0.0

Table of Contents

create()  : InvalidArgument
Create a new invalid argument exception with a standardized text.

Methods

create()

Create a new invalid argument exception with a standardized text.

public static create(int $position, string $name, string $expected, string $received) : InvalidArgument
Parameters
$position : int

The argument position in the function signature. 1-based.

$name : string

The argument name in the function signature.

$expected : string

The argument type expected as a string.

$received : string

The actual argument type received.

Return values
InvalidArgument

Search results