[TOOLS] Fix errors pointed out by PHPStan level 4
This commit is contained in:
@@ -98,7 +98,7 @@ class Subscription extends Component
|
||||
$activity = null;
|
||||
if (\is_null($subscription)) {
|
||||
DB::persist($subscription = Entity\ActorSubscription::create($opts));
|
||||
$activity = Activity::create([
|
||||
$activity = Activity::create([
|
||||
'actor_id' => $subscriber_id,
|
||||
'verb' => 'subscribe',
|
||||
'object_type' => Actor::schemaName(),
|
||||
@@ -184,8 +184,6 @@ class Subscription extends Component
|
||||
* @throws DuplicateFoundException
|
||||
* @throws NotFoundException
|
||||
* @throws ServerException
|
||||
*
|
||||
* @return bool EventHook
|
||||
*/
|
||||
public function onAddProfileActions(Request $request, Actor $object, array &$actions): EventResult
|
||||
{
|
||||
|
Reference in New Issue
Block a user