Type the \OCP\AppFramework\Services\IInitialState::provideLazyInitialState closure with Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
3869c235de
commit
29aa60d65a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue