We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fc133b + f0aec55 commit 854224bCopy full SHA for 854224b
src/Helpers/setting_helper.php
@@ -6,9 +6,10 @@
6
/**
7
* Provides a convenience interface to the Settings service.
8
*
9
- * @param mixed|null $value
+ * @param mixed $value
10
11
* @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))
13
*/
14
function setting(?string $key = null, $value = null)
15
{
0 commit comments