Type the \OCP\IUserManager::callForSeenUsers closure with Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
9dbc227043
commit
c509410b1d
|
@ -547,6 +547,7 @@ class Manager extends PublicEmitter implements IUserManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \Closure $callback
|
* @param \Closure $callback
|
||||||
|
* @psalm-param \Closure(\OCP\IUser):?bool $callback
|
||||||
* @since 11.0.0
|
* @since 11.0.0
|
||||||
*/
|
*/
|
||||||
public function callForSeenUsers(\Closure $callback) {
|
public function callForSeenUsers(\Closure $callback) {
|
||||||
|
|
|
@ -179,6 +179,7 @@ interface IUserManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \Closure $callback
|
* @param \Closure $callback
|
||||||
|
* @psalm-param \Closure(\OCP\IUser):?bool $callback
|
||||||
* @since 11.0.0
|
* @since 11.0.0
|
||||||
*/
|
*/
|
||||||
public function callForSeenUsers(\Closure $callback);
|
public function callForSeenUsers(\Closure $callback);
|
||||||
|
|
Loading…
Reference in New Issue