]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Invite.php
parameters now are having a default value and are optional
[friendica.git] / src / Module / Invite.php
index 162d4489d7ed9daaa7780c45418a3983730d86da..cd616001bef04ddfe7f24fb77c7686db7bc0d3e2 100644 (file)
@@ -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.'));