Skip to content

Commit d7d3959

Browse files
committed
docs: fix @phpstan-return type
1 parent 64866aa commit d7d3959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +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) ? mixed : Timer)
1132+
* @phpstan-return ($name is null ? Timer : ($callable is (callable(): mixed) ? mixed : Timer))
11331133
*/
11341134
function timer(?string $name = null, ?callable $callable = null)
11351135
{

0 commit comments

Comments
 (0)