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.
2 parents 02ee67f + 71b6e52 commit c24dd04Copy full SHA for c24dd04
src/Promise.php
@@ -36,8 +36,8 @@ interface Promise
36
* If you do not care about one of the cases, you can set the corresponding callable to null
37
* The callback will be called when the value arrived and never more than once.
38
*
39
- * @param callable $onFulfilled called when a response will be available
40
- * @param callable $onRejected called when an exception occurs
+ * @param callable|null $onFulfilled called when a response will be available
+ * @param callable|null $onRejected called when an exception occurs
41
42
* @return Promise a new resolved promise with value of the executed callback (onFulfilled / onRejected)
43
*/
0 commit comments