Merge pull request #11791 from Quix0r/fixes/type-hints-formattting

Fixed wrong type-hint
pull/11795/head
Hypolite Petovan 2022-07-28 18:52:48 -04:00 zatwierdzone przez GitHub
commit 34b141dddb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 17 dodań i 15 usunięć

Wyświetl plik

@ -39,13 +39,13 @@ class OpenWebAuthToken
* @return boolean
* @throws \Exception
*/
public static function create(string $type, uid $uid, string $token, string $meta)
public static function create(string $type, int $uid, string $token, string $meta)
{
$fields = [
'type' => $type,
'uid' => $uid,
'token' => $token,
'meta' => $meta,
'type' => $type,
'uid' => $uid,
'token' => $token,
'meta' => $meta,
'created' => DateTimeFormat::utcNow()
];
return DBA::insert('openwebauth-token', $fields);

Wyświetl plik

@ -67,6 +67,7 @@ class Receive extends BaseModule
/**
* Receive a public Diaspora posting
*
* @return void
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
@ -84,6 +85,7 @@ class Receive extends BaseModule
/**
* Receive a Diaspora posting for a user
*
* @return void
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
@ -127,7 +129,7 @@ class Receive extends BaseModule
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
private function decodePost(bool $public = true, string $privKey = '')
private function decodePost(bool $public = true, string $privKey = ''): array
{
if (empty($_POST['xml'])) {

Wyświetl plik

@ -1357,15 +1357,15 @@ class Diaspora
}
$fields = [
'url' => $data['url'],
'nurl' => Strings::normaliseLink($data['url']),
'name' => $data['name'],
'nick' => $data['nick'],
'addr' => $data['addr'],
'batch' => $data['batch'],
'notify' => $data['notify'],
'poll' => $data['poll'],
'network' => $data['network']
'url' => $data['url'],
'nurl' => Strings::normaliseLink($data['url']),
'name' => $data['name'],
'nick' => $data['nick'],
'addr' => $data['addr'],
'batch' => $data['batch'],
'notify' => $data['notify'],
'poll' => $data['poll'],
'network' => $data['network'],
];
Contact::update($fields, ['addr' => $old_handle]);