parameters now are having a default value and are optional
This commit is contained in:
@@ -16,7 +16,7 @@ use Friendica\Util\Strings;
|
||||
*/
|
||||
class Invite extends BaseModule
|
||||
{
|
||||
public static function post($parameters)
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\ForbiddenException(L10n::t('Permission denied.'));
|
||||
@@ -104,7 +104,7 @@ class Invite extends BaseModule
|
||||
notice(L10n::tt('%d message sent.', '%d messages sent.', $total) . EOL);
|
||||
}
|
||||
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
throw new HTTPException\ForbiddenException(L10n::t('Permission denied.'));
|
||||
|
||||
Reference in New Issue
Block a user