Skip to content

Commit 7f031ed

Browse files
committed
docs: fix PHPDoc types
1 parent 9b765bf commit 7f031ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Helpers/setting_helper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
/**
77
* Provides a convenience interface to the Settings service.
88
*
9-
* @param mixed|null $value
9+
* @param mixed $value
1010
*
1111
* @return array|bool|float|int|object|Settings|string|void|null
12+
* @phpstan-return ($key is null ? Settings : ($value is null ? array|bool|float|int|object|string|null : void))
1213
*/
1314
function setting(?string $key = null, $value = null)
1415
{

0 commit comments

Comments
 (0)