Add phpstan for static analysis (#3718)

This commit is contained in:
Dane Everitt
2021-10-30 13:41:38 -07:00
committed by GitHub
parent 871d0bdd1c
commit cdd8eabcc0
103 changed files with 1286 additions and 877 deletions
@@ -39,10 +39,8 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
/**
* Create a new database user on a given connection.
*
* @param $max_connections
*/
public function createUser(string $username, string $remote, string $password, string $max_connections): bool;
public function createUser(string $username, string $remote, string $password, int $max_connections): bool;
/**
* Give a specific user access to a given database.
@@ -61,8 +59,6 @@ interface DatabaseRepositoryInterface extends RepositoryInterface
/**
* Drop a given user on a specific connection.
*
* @return mixed
*/
public function dropUser(string $username, string $remote): bool;
}