refactor: remove all empty declarations + add missing type declarations

update composer dependencies
This commit is contained in:
Yassine Doghri 2021-05-18 17:16:36 +00:00
commit fb3593f828
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
103 changed files with 745 additions and 1287 deletions

View file

@ -25,15 +25,8 @@ class NoteController extends ActivityPubNoteController
{
use AnalyticsTrait;
/**
* @var Podcast
*/
protected $podcast;
/**
* @var Actor
*/
protected $actor;
protected Podcast $podcast;
protected Actor $actor;
/**
* @var string[]
@ -219,6 +212,7 @@ class NoteController extends ActivityPubNoteController
}
$action = $this->request->getPost('action');
/** @phpstan-ignore-next-line */
switch ($action) {
case 'favourite':
return $this->attemptFavourite();