1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 09:27:46 +01:00

Add missing generics to Future

This commit is contained in:
Niklas Keller 2022-11-06 22:07:04 +01:00
parent 288e8fc066
commit 25e4923d14
No known key found for this signature in database
GPG Key ID: AFA536ABA90C76A6

View File

@ -111,6 +111,8 @@ final class Future
/**
* Do not forward unhandled errors to the event loop handler.
*
* @return Future<T>
*/
public function ignore(): self
{
@ -129,7 +131,7 @@ final class Future
*
* @param \Closure(T):Tr $map
*
* @return Future
* @return Future<Tr>
*/
public function map(\Closure $map): self
{
@ -160,7 +162,7 @@ final class Future
*
* @param \Closure(\Throwable):Tr $catch
*
* @return Future
* @return Future<Tr>
*/
public function catch(\Closure $catch): self
{