Merge pull request #11791 from Quix0r/fixes/type-hints-formattting
Fixed wrong type-hint
This commit is contained in:
commit
34b141dddb
|
@ -39,7 +39,7 @@ 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,
|
||||
|
|
|
@ -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'])) {
|
||||
|
||||
|
|
|
@ -1365,7 +1365,7 @@ class Diaspora
|
|||
'batch' => $data['batch'],
|
||||
'notify' => $data['notify'],
|
||||
'poll' => $data['poll'],
|
||||
'network' => $data['network']
|
||||
'network' => $data['network'],
|
||||
];
|
||||
|
||||
Contact::update($fields, ['addr' => $old_handle]);
|
||||
|
|
Loading…
Reference in a new issue