Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../psr/http-mes.../src
File: ServerRequestInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace YoastSEO_Vendor\Psr\Http\Message;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Representation of an incoming, server-side HTTP request.
[5] Fix | Delete
*
[6] Fix | Delete
* Per the HTTP specification, this interface includes properties for
[7] Fix | Delete
* each of the following:
[8] Fix | Delete
*
[9] Fix | Delete
* - Protocol version
[10] Fix | Delete
* - HTTP method
[11] Fix | Delete
* - URI
[12] Fix | Delete
* - Headers
[13] Fix | Delete
* - Message body
[14] Fix | Delete
*
[15] Fix | Delete
* Additionally, it encapsulates all data as it has arrived to the
[16] Fix | Delete
* application from the CGI and/or PHP environment, including:
[17] Fix | Delete
*
[18] Fix | Delete
* - The values represented in $_SERVER.
[19] Fix | Delete
* - Any cookies provided (generally via $_COOKIE)
[20] Fix | Delete
* - Query string arguments (generally via $_GET, or as parsed via parse_str())
[21] Fix | Delete
* - Upload files, if any (as represented by $_FILES)
[22] Fix | Delete
* - Deserialized body parameters (generally from $_POST)
[23] Fix | Delete
*
[24] Fix | Delete
* $_SERVER values MUST be treated as immutable, as they represent application
[25] Fix | Delete
* state at the time of request; as such, no methods are provided to allow
[26] Fix | Delete
* modification of those values. The other values provide such methods, as they
[27] Fix | Delete
* can be restored from $_SERVER or the request body, and may need treatment
[28] Fix | Delete
* during the application (e.g., body parameters may be deserialized based on
[29] Fix | Delete
* content type).
[30] Fix | Delete
*
[31] Fix | Delete
* Additionally, this interface recognizes the utility of introspecting a
[32] Fix | Delete
* request to derive and match additional parameters (e.g., via URI path
[33] Fix | Delete
* matching, decrypting cookie values, deserializing non-form-encoded body
[34] Fix | Delete
* content, matching authorization headers to users, etc). These parameters
[35] Fix | Delete
* are stored in an "attributes" property.
[36] Fix | Delete
*
[37] Fix | Delete
* Requests are considered immutable; all methods that might change state MUST
[38] Fix | Delete
* be implemented such that they retain the internal state of the current
[39] Fix | Delete
* message and return an instance that contains the changed state.
[40] Fix | Delete
*/
[41] Fix | Delete
interface ServerRequestInterface extends \YoastSEO_Vendor\Psr\Http\Message\RequestInterface
[42] Fix | Delete
{
[43] Fix | Delete
/**
[44] Fix | Delete
* Retrieve server parameters.
[45] Fix | Delete
*
[46] Fix | Delete
* Retrieves data related to the incoming request environment,
[47] Fix | Delete
* typically derived from PHP's $_SERVER superglobal. The data IS NOT
[48] Fix | Delete
* REQUIRED to originate from $_SERVER.
[49] Fix | Delete
*
[50] Fix | Delete
* @return array
[51] Fix | Delete
*/
[52] Fix | Delete
public function getServerParams() : array;
[53] Fix | Delete
/**
[54] Fix | Delete
* Retrieve cookies.
[55] Fix | Delete
*
[56] Fix | Delete
* Retrieves cookies sent by the client to the server.
[57] Fix | Delete
*
[58] Fix | Delete
* The data MUST be compatible with the structure of the $_COOKIE
[59] Fix | Delete
* superglobal.
[60] Fix | Delete
*
[61] Fix | Delete
* @return array
[62] Fix | Delete
*/
[63] Fix | Delete
public function getCookieParams() : array;
[64] Fix | Delete
/**
[65] Fix | Delete
* Return an instance with the specified cookies.
[66] Fix | Delete
*
[67] Fix | Delete
* The data IS NOT REQUIRED to come from the $_COOKIE superglobal, but MUST
[68] Fix | Delete
* be compatible with the structure of $_COOKIE. Typically, this data will
[69] Fix | Delete
* be injected at instantiation.
[70] Fix | Delete
*
[71] Fix | Delete
* This method MUST NOT update the related Cookie header of the request
[72] Fix | Delete
* instance, nor related values in the server params.
[73] Fix | Delete
*
[74] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[75] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[76] Fix | Delete
* updated cookie values.
[77] Fix | Delete
*
[78] Fix | Delete
* @param array $cookies Array of key/value pairs representing cookies.
[79] Fix | Delete
* @return static
[80] Fix | Delete
*/
[81] Fix | Delete
public function withCookieParams(array $cookies) : \YoastSEO_Vendor\Psr\Http\Message\ServerRequestInterface;
[82] Fix | Delete
/**
[83] Fix | Delete
* Retrieve query string arguments.
[84] Fix | Delete
*
[85] Fix | Delete
* Retrieves the deserialized query string arguments, if any.
[86] Fix | Delete
*
[87] Fix | Delete
* Note: the query params might not be in sync with the URI or server
[88] Fix | Delete
* params. If you need to ensure you are only getting the original
[89] Fix | Delete
* values, you may need to parse the query string from `getUri()->getQuery()`
[90] Fix | Delete
* or from the `QUERY_STRING` server param.
[91] Fix | Delete
*
[92] Fix | Delete
* @return array
[93] Fix | Delete
*/
[94] Fix | Delete
public function getQueryParams() : array;
[95] Fix | Delete
/**
[96] Fix | Delete
* Return an instance with the specified query string arguments.
[97] Fix | Delete
*
[98] Fix | Delete
* These values SHOULD remain immutable over the course of the incoming
[99] Fix | Delete
* request. They MAY be injected during instantiation, such as from PHP's
[100] Fix | Delete
* $_GET superglobal, or MAY be derived from some other value such as the
[101] Fix | Delete
* URI. In cases where the arguments are parsed from the URI, the data
[102] Fix | Delete
* MUST be compatible with what PHP's parse_str() would return for
[103] Fix | Delete
* purposes of how duplicate query parameters are handled, and how nested
[104] Fix | Delete
* sets are handled.
[105] Fix | Delete
*
[106] Fix | Delete
* Setting query string arguments MUST NOT change the URI stored by the
[107] Fix | Delete
* request, nor the values in the server params.
[108] Fix | Delete
*
[109] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[110] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[111] Fix | Delete
* updated query string arguments.
[112] Fix | Delete
*
[113] Fix | Delete
* @param array $query Array of query string arguments, typically from
[114] Fix | Delete
* $_GET.
[115] Fix | Delete
* @return static
[116] Fix | Delete
*/
[117] Fix | Delete
public function withQueryParams(array $query) : \YoastSEO_Vendor\Psr\Http\Message\ServerRequestInterface;
[118] Fix | Delete
/**
[119] Fix | Delete
* Retrieve normalized file upload data.
[120] Fix | Delete
*
[121] Fix | Delete
* This method returns upload metadata in a normalized tree, with each leaf
[122] Fix | Delete
* an instance of Psr\Http\Message\UploadedFileInterface.
[123] Fix | Delete
*
[124] Fix | Delete
* These values MAY be prepared from $_FILES or the message body during
[125] Fix | Delete
* instantiation, or MAY be injected via withUploadedFiles().
[126] Fix | Delete
*
[127] Fix | Delete
* @return array An array tree of UploadedFileInterface instances; an empty
[128] Fix | Delete
* array MUST be returned if no data is present.
[129] Fix | Delete
*/
[130] Fix | Delete
public function getUploadedFiles() : array;
[131] Fix | Delete
/**
[132] Fix | Delete
* Create a new instance with the specified uploaded files.
[133] Fix | Delete
*
[134] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[135] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[136] Fix | Delete
* updated body parameters.
[137] Fix | Delete
*
[138] Fix | Delete
* @param array $uploadedFiles An array tree of UploadedFileInterface instances.
[139] Fix | Delete
* @return static
[140] Fix | Delete
* @throws \InvalidArgumentException if an invalid structure is provided.
[141] Fix | Delete
*/
[142] Fix | Delete
public function withUploadedFiles(array $uploadedFiles) : \YoastSEO_Vendor\Psr\Http\Message\ServerRequestInterface;
[143] Fix | Delete
/**
[144] Fix | Delete
* Retrieve any parameters provided in the request body.
[145] Fix | Delete
*
[146] Fix | Delete
* If the request Content-Type is either application/x-www-form-urlencoded
[147] Fix | Delete
* or multipart/form-data, and the request method is POST, this method MUST
[148] Fix | Delete
* return the contents of $_POST.
[149] Fix | Delete
*
[150] Fix | Delete
* Otherwise, this method may return any results of deserializing
[151] Fix | Delete
* the request body content; as parsing returns structured content, the
[152] Fix | Delete
* potential types MUST be arrays or objects only. A null value indicates
[153] Fix | Delete
* the absence of body content.
[154] Fix | Delete
*
[155] Fix | Delete
* @return null|array|object The deserialized body parameters, if any.
[156] Fix | Delete
* These will typically be an array or object.
[157] Fix | Delete
*/
[158] Fix | Delete
public function getParsedBody();
[159] Fix | Delete
/**
[160] Fix | Delete
* Return an instance with the specified body parameters.
[161] Fix | Delete
*
[162] Fix | Delete
* These MAY be injected during instantiation.
[163] Fix | Delete
*
[164] Fix | Delete
* If the request Content-Type is either application/x-www-form-urlencoded
[165] Fix | Delete
* or multipart/form-data, and the request method is POST, use this method
[166] Fix | Delete
* ONLY to inject the contents of $_POST.
[167] Fix | Delete
*
[168] Fix | Delete
* The data IS NOT REQUIRED to come from $_POST, but MUST be the results of
[169] Fix | Delete
* deserializing the request body content. Deserialization/parsing returns
[170] Fix | Delete
* structured data, and, as such, this method ONLY accepts arrays or objects,
[171] Fix | Delete
* or a null value if nothing was available to parse.
[172] Fix | Delete
*
[173] Fix | Delete
* As an example, if content negotiation determines that the request data
[174] Fix | Delete
* is a JSON payload, this method could be used to create a request
[175] Fix | Delete
* instance with the deserialized parameters.
[176] Fix | Delete
*
[177] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[178] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[179] Fix | Delete
* updated body parameters.
[180] Fix | Delete
*
[181] Fix | Delete
* @param null|array|object $data The deserialized body data. This will
[182] Fix | Delete
* typically be in an array or object.
[183] Fix | Delete
* @return static
[184] Fix | Delete
* @throws \InvalidArgumentException if an unsupported argument type is
[185] Fix | Delete
* provided.
[186] Fix | Delete
*/
[187] Fix | Delete
public function withParsedBody($data) : \YoastSEO_Vendor\Psr\Http\Message\ServerRequestInterface;
[188] Fix | Delete
/**
[189] Fix | Delete
* Retrieve attributes derived from the request.
[190] Fix | Delete
*
[191] Fix | Delete
* The request "attributes" may be used to allow injection of any
[192] Fix | Delete
* parameters derived from the request: e.g., the results of path
[193] Fix | Delete
* match operations; the results of decrypting cookies; the results of
[194] Fix | Delete
* deserializing non-form-encoded message bodies; etc. Attributes
[195] Fix | Delete
* will be application and request specific, and CAN be mutable.
[196] Fix | Delete
*
[197] Fix | Delete
* @return array Attributes derived from the request.
[198] Fix | Delete
*/
[199] Fix | Delete
public function getAttributes() : array;
[200] Fix | Delete
/**
[201] Fix | Delete
* Retrieve a single derived request attribute.
[202] Fix | Delete
*
[203] Fix | Delete
* Retrieves a single derived request attribute as described in
[204] Fix | Delete
* getAttributes(). If the attribute has not been previously set, returns
[205] Fix | Delete
* the default value as provided.
[206] Fix | Delete
*
[207] Fix | Delete
* This method obviates the need for a hasAttribute() method, as it allows
[208] Fix | Delete
* specifying a default value to return if the attribute is not found.
[209] Fix | Delete
*
[210] Fix | Delete
* @see getAttributes()
[211] Fix | Delete
* @param string $name The attribute name.
[212] Fix | Delete
* @param mixed $default Default value to return if the attribute does not exist.
[213] Fix | Delete
* @return mixed
[214] Fix | Delete
*/
[215] Fix | Delete
public function getAttribute(string $name, $default = null);
[216] Fix | Delete
/**
[217] Fix | Delete
* Return an instance with the specified derived request attribute.
[218] Fix | Delete
*
[219] Fix | Delete
* This method allows setting a single derived request attribute as
[220] Fix | Delete
* described in getAttributes().
[221] Fix | Delete
*
[222] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[223] Fix | Delete
* immutability of the message, and MUST return an instance that has the
[224] Fix | Delete
* updated attribute.
[225] Fix | Delete
*
[226] Fix | Delete
* @see getAttributes()
[227] Fix | Delete
* @param string $name The attribute name.
[228] Fix | Delete
* @param mixed $value The value of the attribute.
[229] Fix | Delete
* @return static
[230] Fix | Delete
*/
[231] Fix | Delete
public function withAttribute(string $name, $value) : \YoastSEO_Vendor\Psr\Http\Message\ServerRequestInterface;
[232] Fix | Delete
/**
[233] Fix | Delete
* Return an instance that removes the specified derived request attribute.
[234] Fix | Delete
*
[235] Fix | Delete
* This method allows removing a single derived request attribute as
[236] Fix | Delete
* described in getAttributes().
[237] Fix | Delete
*
[238] Fix | Delete
* This method MUST be implemented in such a way as to retain the
[239] Fix | Delete
* immutability of the message, and MUST return an instance that removes
[240] Fix | Delete
* the attribute.
[241] Fix | Delete
*
[242] Fix | Delete
* @see getAttributes()
[243] Fix | Delete
* @param string $name The attribute name.
[244] Fix | Delete
* @return static
[245] Fix | Delete
*/
[246] Fix | Delete
public function withoutAttribute(string $name) : \YoastSEO_Vendor\Psr\Http\Message\ServerRequestInterface;
[247] Fix | Delete
}
[248] Fix | Delete
[249] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function