summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-28 14:03:34 +0100
committerGitHub <noreply@github.com>2020-10-28 14:03:34 +0100
commitad3063a77be46f8c8d3487d375e4ba054633f626 (patch)
tree1afc218c2888448b1ea63229b949ee8f5fc7927d /lib/public
parente3e6bc5972668b004fca4d337ca76841a1e06edc (diff)
parente8e13c845cacfe5962b3a2a77a84782dadb80ea4 (diff)
downloadnextcloud-server-ad3063a77be46f8c8d3487d375e4ba054633f626.tar.gz
nextcloud-server-ad3063a77be46f8c8d3487d375e4ba054633f626.zip
Merge pull request #23744 from nextcloud/enhancement/appframework-initialstate-typed-closure
Type the \OCP\AppFramework\Services\IInitialState::provideLazyInitial…
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Services/IInitialState.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Services/IInitialState.php b/lib/public/AppFramework/Services/IInitialState.php
index 306bb220ba3..120ad778b52 100644
--- a/lib/public/AppFramework/Services/IInitialState.php
+++ b/lib/public/AppFramework/Services/IInitialState.php
@@ -27,6 +27,8 @@ declare(strict_types=1);
namespace OCP\AppFramework\Services;
+use Closure;
+
/**
* @since 20.0.0
*/
@@ -55,6 +57,7 @@ interface IInitialState {
*
* @param string $key
* @param Closure $closure returns a primitive or an object that implements JsonSerializable
+ * @psalm-param Closure():int|Closure():float|Closure():string|Closure():\JsonSerializable $closure
*/
- public function provideLazyInitialState(string $key, \Closure $closure): void;
+ public function provideLazyInitialState(string $key, Closure $closure): void;
}