Skip to content
Snippets Groups Projects
Unverified Commit e8e13c84 authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Type the \OCP\AppFramework\Services\IInitialState::provideLazyInitialState closure with Psalm

parent e4288529
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment