Type the \OCP\IUserManager::callForSeenUsers closure with Psalm

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-10-28 09:43:26 +01:00
parent 4ade7f12f2
commit 7e72866811
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
2 changed files with 2 additions and 0 deletions

View File

@ -547,6 +547,7 @@ class Manager extends PublicEmitter implements IUserManager {
/**
* @param \Closure $callback
* @psalm-param \Closure(\OCP\IUser):?bool $callback
* @since 11.0.0
*/
public function callForSeenUsers(\Closure $callback) {

View File

@ -179,6 +179,7 @@ interface IUserManager {
/**
* @param \Closure $callback
* @psalm-param \Closure(\OCP\IUser):?bool $callback
* @since 11.0.0
*/
public function callForSeenUsers(\Closure $callback);