Skip to content

Commit 5382912

Browse files
author
Patrick Siemen
committed
add phpstan return and template annotations for better phpstan integration
1 parent 8b8aced commit 5382912

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Backoff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ protected function buildStrategy($strategy)
223223
}
224224

225225
/**
226-
* @param callable $callback
226+
* @template T
227+
* @param callable():T $callback
227228
*
229+
* @phpstan-return (T is void ? null : T)
228230
* @return mixed
229231
* @throws Exception
230232
*/

0 commit comments

Comments
 (0)