Skip to content

Commit ef569ec

Browse files
authored
Merge pull request #78 from kenjis/fix-phpdocs-setting
docs: fix PHPDoc types in setting()
2 parents 9b765bf + 7f031ed commit ef569ec

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)