mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:25:54 +00:00
deal with phpstan warnings related to base authentication modules
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
<?php
|
||||
interface IAuthModule {
|
||||
/**
|
||||
* @param string $login
|
||||
* @param string $password
|
||||
* optional third string $service
|
||||
* @return int|false user_id
|
||||
*/
|
||||
function authenticate($login, $password); // + optional third parameter: $service
|
||||
function hook_auth_user(...$args); // compatibility wrapper due to how hooks work
|
||||
|
||||
/** this is a pluginhost compatibility wrapper that invokes $this->authenticate(...$args) (Auth_Base)
|
||||
* @param mixed $args = ($login, $password, $service)
|
||||
* @return int|false user_id
|
||||
*/
|
||||
function hook_auth_user(...$args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user