for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gemz\HttpClient\Exceptions;
use InvalidArgumentException;
final class InvalidArgument extends InvalidArgumentException
{
/**
* @return InvalidArgument
*/
public static function payloadMustBeArray(): InvalidArgument
return new static(
"Payload must be an array when content-type is application/json, " .
"multipart/form-data or application/x-www-form-urlencoded");
}
* @param string $bodyFormat
*
public static function payloadAndBodyFormatNotCompatible(string $bodyFormat): self
$bodyFormat
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
"The body format and the payload are not compatiblePayload must be an array when content-type is application/json, " .
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.