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.../guzzleht.../promises/src
File: PromiseInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
declare (strict_types=1);
[2] Fix | Delete
namespace YoastSEO_Vendor\GuzzleHttp\Promise;
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* A promise represents the eventual result of an asynchronous operation.
[6] Fix | Delete
*
[7] Fix | Delete
* The primary way of interacting with a promise is through its then method,
[8] Fix | Delete
* which registers callbacks to receive either a promise’s eventual value or
[9] Fix | Delete
* the reason why the promise cannot be fulfilled.
[10] Fix | Delete
*
[11] Fix | Delete
* @see https://promisesaplus.com/
[12] Fix | Delete
*/
[13] Fix | Delete
interface PromiseInterface
[14] Fix | Delete
{
[15] Fix | Delete
public const PENDING = 'pending';
[16] Fix | Delete
public const FULFILLED = 'fulfilled';
[17] Fix | Delete
public const REJECTED = 'rejected';
[18] Fix | Delete
/**
[19] Fix | Delete
* Appends fulfillment and rejection handlers to the promise, and returns
[20] Fix | Delete
* a new promise resolving to the return value of the called handler.
[21] Fix | Delete
*
[22] Fix | Delete
* @param callable $onFulfilled Invoked when the promise fulfills.
[23] Fix | Delete
* @param callable $onRejected Invoked when the promise is rejected.
[24] Fix | Delete
*/
[25] Fix | Delete
public function then(callable $onFulfilled = null, callable $onRejected = null) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface;
[26] Fix | Delete
/**
[27] Fix | Delete
* Appends a rejection handler callback to the promise, and returns a new
[28] Fix | Delete
* promise resolving to the return value of the callback if it is called,
[29] Fix | Delete
* or to its original fulfillment value if the promise is instead
[30] Fix | Delete
* fulfilled.
[31] Fix | Delete
*
[32] Fix | Delete
* @param callable $onRejected Invoked when the promise is rejected.
[33] Fix | Delete
*/
[34] Fix | Delete
public function otherwise(callable $onRejected) : \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface;
[35] Fix | Delete
/**
[36] Fix | Delete
* Get the state of the promise ("pending", "rejected", or "fulfilled").
[37] Fix | Delete
*
[38] Fix | Delete
* The three states can be checked against the constants defined on
[39] Fix | Delete
* PromiseInterface: PENDING, FULFILLED, and REJECTED.
[40] Fix | Delete
*/
[41] Fix | Delete
public function getState() : string;
[42] Fix | Delete
/**
[43] Fix | Delete
* Resolve the promise with the given value.
[44] Fix | Delete
*
[45] Fix | Delete
* @param mixed $value
[46] Fix | Delete
*
[47] Fix | Delete
* @throws \RuntimeException if the promise is already resolved.
[48] Fix | Delete
*/
[49] Fix | Delete
public function resolve($value) : void;
[50] Fix | Delete
/**
[51] Fix | Delete
* Reject the promise with the given reason.
[52] Fix | Delete
*
[53] Fix | Delete
* @param mixed $reason
[54] Fix | Delete
*
[55] Fix | Delete
* @throws \RuntimeException if the promise is already resolved.
[56] Fix | Delete
*/
[57] Fix | Delete
public function reject($reason) : void;
[58] Fix | Delete
/**
[59] Fix | Delete
* Cancels the promise if possible.
[60] Fix | Delete
*
[61] Fix | Delete
* @see https://github.com/promises-aplus/cancellation-spec/issues/7
[62] Fix | Delete
*/
[63] Fix | Delete
public function cancel() : void;
[64] Fix | Delete
/**
[65] Fix | Delete
* Waits until the promise completes if possible.
[66] Fix | Delete
*
[67] Fix | Delete
* Pass $unwrap as true to unwrap the result of the promise, either
[68] Fix | Delete
* returning the resolved value or throwing the rejected exception.
[69] Fix | Delete
*
[70] Fix | Delete
* If the promise cannot be waited on, then the promise will be rejected.
[71] Fix | Delete
*
[72] Fix | Delete
* @return mixed
[73] Fix | Delete
*
[74] Fix | Delete
* @throws \LogicException if the promise has no wait function or if the
[75] Fix | Delete
* promise does not settle after waiting.
[76] Fix | Delete
*/
[77] Fix | Delete
public function wait(bool $unwrap = \true);
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function