mirror of
https://github.com/friendica/friendica
synced 2025-04-22 11:10:11 +00:00
parameters now are having a default value and are optional
This commit is contained in:
parent
bc2694bf7f
commit
8c03bdada9
110 changed files with 1840 additions and 165 deletions
|
@ -8,7 +8,7 @@ use Friendica\Network\HTTPException;
|
|||
|
||||
class MethodNotAllowed extends BaseModule
|
||||
{
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
throw new HTTPException\MethodNotAllowedException(L10n::t('Method Not Allowed.'));
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ use Friendica\Network\HTTPException;
|
|||
|
||||
class PageNotFound extends BaseModule
|
||||
{
|
||||
public static function content($parameters)
|
||||
public static function content(array $parameters = [])
|
||||
{
|
||||
throw new HTTPException\NotFoundException(L10n::t('Page not found.'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue