]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Register.php
parameters now are having a default value and are optional
[friendica.git] / src / Module / Register.php
index 6993415e66d493c932070582b03928df8c181cd7..aaca8c02e2c3d275681631d96afab2ca9aa8903d 100644 (file)
@@ -35,7 +35,7 @@ class Register extends BaseModule
         *
         * @return string
         */
-       public static function content($parameters)
+       public static function content(array $parameters = [])
        {
                // logged in users can register others (people/pages/groups)
                // even with closed registrations, unless specifically prohibited by site policy.
@@ -152,7 +152,7 @@ class Register extends BaseModule
         * Extend this method if the module is supposed to process POST requests.
         * Doesn't display any content
         */
-       public static function post($parameters)
+       public static function post(array $parameters = [])
        {
                BaseModule::checkFormSecurityTokenRedirectOnError('/register', 'register');