wp-includes/Requests/src/Exception/InvalidArgument.php:25Create a new invalid argument exception with a standardized text.
$positionint$namestring$expectedstring$receivedstringWpOrg\Requests\Exception\InvalidArgument public static function create($position, $name, $expected, $received) { // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace $stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2); return new self( sprintf( '%s::%s(): Argument #%d (%s) must be of type %s, %s given', $stack[1]['class'], $stack[1]['function'], $position, $name, $expected, $received ) ); }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/Requests/src/Exception/InvalidArgument.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.