Merge pull request #23744 from nextcloud/enhancement/appframework-initialstate-typed-closure

Type the \OCP\AppFramework\Services\IInitialState::provideLazyInitial…
This commit is contained in:
Morris Jobke 2020-10-28 14:03:34 +01:00 committed by GitHub
commit ad3063a77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}