Skip to content

Commit 2fb572d

Browse files
committed
docs: add @phpstan-return
1 parent e8980a8 commit 2fb572d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system/Common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ function stringify_attributes($attributes, bool $js = false): string
11291129
* @param (callable(): mixed)|null $callable
11301130
*
11311131
* @return mixed|Timer
1132+
* @phpstan-return ($callable is callable ? mixed : Timer)
11321133
*/
11331134
function timer(?string $name = null, ?callable $callable = null)
11341135
{

0 commit comments

Comments
 (0)