forked from GNUsocial/gnu-social
[ActivityPub] Fix DELETE
This commit is contained in:
@@ -43,11 +43,10 @@ class Activitypub_error
|
||||
* @param string $m
|
||||
* @return array pretty array to be used in a response
|
||||
*/
|
||||
public static function error_message_to_array($m)
|
||||
public static function error_message_to_array(string $m): array
|
||||
{
|
||||
$res = [
|
||||
return [
|
||||
'error'=> $m
|
||||
];
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user