mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #32486 from nextcloud/debt/noid/psalm-username
[Psalm] Rename $userName to $username to align with child classes
This commit is contained in:
commit
d90583ca28
2 changed files with 3 additions and 4 deletions
|
|
@ -141,9 +141,9 @@ abstract class AbstractDatabase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param string $userName
|
||||
* @param string $username
|
||||
*/
|
||||
abstract public function setupDatabase($userName);
|
||||
abstract public function setupDatabase($username);
|
||||
|
||||
public function runMigrations() {
|
||||
if (!is_dir(\OC::$SERVERROOT."/core/Migrations")) {
|
||||
|
|
|
|||
|
|
@ -135,9 +135,8 @@ class MySQL extends AbstractDatabase {
|
|||
/**
|
||||
* @param $username
|
||||
* @param IDBConnection $connection
|
||||
* @return array
|
||||
*/
|
||||
private function createSpecificUser($username, $connection) {
|
||||
private function createSpecificUser($username, $connection): void {
|
||||
try {
|
||||
//user already specified in config
|
||||
$oldUser = $this->config->getValue('dbuser', false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue