Skip to content

Commit ac187c1

Browse files
committed
Adjust PHPDoc to match the rest of async-interop
1 parent 7b3b87d commit ac187c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ interface Promise
5656
*
5757
* If the promise is already resolved, the callback MUST be executed immediately.
5858
*
59-
* @param callable(mixed $reason, mixed $value) <`$reason` shall be `null` on success, `$value` shall be `null` on failure>
59+
* @param callable(mixed $reason, mixed $value) @onResolved `$reason` shall be `null` on success, `$value` shall be
60+
* `null` on failure.
6061
*
6162
* @return void
6263
*/

src/Promise.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interface Promise
1212
*
1313
* If the promise is already resolved, the callback MUST be executed immediately.
1414
*
15-
* @param callable(mixed $reason, mixed $value) <`$reason` shall be `null` on success, `$value` shall be `null` on failure>
15+
* @param callable(mixed $reason, mixed $value) @onResolved `$reason` shall be `null` on success, `$value` shall be
16+
* `null` on failure.
1617
*
1718
* @return void
1819
*/

0 commit comments

Comments
 (0)