Skip to content

Commit baab60f

Browse files
authored
Merge pull request #21 from siemendev/master
add phpstan return and template annotations
2 parents 8b8aced + 5382912 commit baab60f

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)