forked from GNUsocial/gnu-social
[TOOLS] Fix all level 0 errors found by PHPStan and move constant definition to bootstrap file
This commit is contained in:
@@ -14,11 +14,11 @@ class TypeResponse extends JsonResponse
|
||||
*/
|
||||
public function __construct($data = null, int $status = 202, array $headers = [], bool $json = false)
|
||||
{
|
||||
return parent::__construct(
|
||||
parent::__construct(
|
||||
data: !is_null($data) ? $data->toJson() : null,
|
||||
status: $status,
|
||||
headers: ['content-type' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'],
|
||||
json: true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user