Like some(), with 1 as count. However, if the promise fulfills, the fulfillment value is not an array of 1 but the value directly.
mixed $promises Promises or values.:
public static function any($promises) : PromiseInterface { return self::some(1, $promises)->then(function ($values) { return $values[0]; }); }