]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Delegation.php
parameters now are having a default value and are optional
[friendica.git] / src / Module / Delegation.php
index 46dc7025ee9fd8600cdc0b033dcf0a6774c50ac0..d2930317c08ce638aa22b54e10dec3485a33265d 100644 (file)
@@ -17,7 +17,7 @@ use Friendica\Network\HTTPException\ForbiddenException;
  */
 class Delegation extends BaseModule
 {
-       public static function post($parameters)
+       public static function post(array $parameters = [])
        {
                if (!local_user()) {
                        return;
@@ -92,7 +92,7 @@ class Delegation extends BaseModule
                // NOTREACHED
        }
 
-       public static function content($parameters)
+       public static function content(array $parameters = [])
        {
                if (!local_user()) {
                        throw new ForbiddenException(L10n::t('Permission denied.'));