We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3fb68 commit 3ea6e23Copy full SHA for 3ea6e23
src/Whenable.php
@@ -8,9 +8,9 @@
8
interface Whenable
9
{
10
/**
11
- * Calling this method without a callback will throw the exception from a failed whenable in an uncatchable way.
+ * Registers a callback to be invoked when the whenable is resolved.
12
*
13
- * @param callable(\Throwable|\Exception $exception = null, mixed $result = null)|null $onResolved
+ * @param callable(\Throwable|\Exception $exception = null, mixed $result = null) $onResolved
14
*/
15
- public function when(callable $onResolved = null);
+ public function when(callable $onResolved);
16
}
0 commit comments