$88 GRAYBYTE WORDPRESS FILE MANAGER $20

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/public_html/wp-includes__57d57c5/Requests/src/Exception/

HOME
Current File : /home/bravrvjk/public_html/wp-includes__57d57c5/Requests/src/Exception//ArgumentCount.php
<?php

namespace WpOrg\Requests\Exception;

use WpOrg\Requests\Exception;

/**
 * Exception for when an incorrect number of arguments are passed to a method.
 *
 * Typically, this exception is used when all arguments for a method are optional,
 * but certain arguments need to be passed together, i.e. a method which can be called
 * with no arguments or with two arguments, but not with one argument.
 *
 * Along the same lines, this exception is also used if a method expects an array
 * with a certain number of elements and the provided number of elements does not comply.
 *
 * @package Requests\Exceptions
 * @since   2.0.0
 */
final class ArgumentCount extends Exception {

	/**
	 * Create a new argument count exception with a standardized text.
	 *
	 * @param string $expected The argument count expected as a phrase.
	 *                         For example: `at least 2 arguments` or `exactly 1 argument`.
	 * @param int    $received The actual argument count received.
	 * @param string $type     Exception type.
	 *
	 * @return \WpOrg\Requests\Exception\ArgumentCount
	 */
	public static function create($expected, $received, $type) {
		// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace
		$stack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);

		return new self(
			sprintf(
				'%s::%s() expects %s, %d given',
				$stack[1]['class'],
				$stack[1]['function'],
				$expected,
				$received
			),
			$type
		);
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 Apr 2026 8.59 AM
bravrvjk / bravrvjk
0755
Http
--
6 Apr 2026 8.59 AM
bravrvjk / bravrvjk
0755
Transport
--
6 Apr 2026 8.59 AM
bravrvjk / bravrvjk
0755
embeds
--
6 Apr 2026 8.59 AM
bravrvjk / bravrvjk
0755
ArgumentCount.php
1.426 KB
16 Dec 2022 2.32 AM
bravrvjk / bravrvjk
0644
Http.php
1.506 KB
16 Dec 2022 2.32 AM
bravrvjk / bravrvjk
0644
InvalidArgument.php
1.08 KB
16 Dec 2022 2.32 AM
bravrvjk / bravrvjk
0644
Transport.php
0.238 KB
16 Dec 2022 2.32 AM
bravrvjk / bravrvjk
0644
error_log
1.801 KB
29 Mar 2026 7.28 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF