aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-28 09:04:15 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-28 09:04:15 +0100
commite8e13c845cacfe5962b3a2a77a84782dadb80ea4 (patch)
tree0ca66021f7c678c99231a1decbb9ad15f3ea636b /lib/public
parente4288529fa5864edf2a188fc22afa02fa96ca455 (diff)
downloadnextcloud-server-e8e13c845cacfe5962b3a2a77a84782dadb80ea4.tar.gz
nextcloud-server-e8e13c845cacfe5962b3a2a77a84782dadb80ea4.zip
Type the \OCP\AppFramework\Services\IInitialState::provideLazyInitialState closure with Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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;
}