Skip to content

redirect->route wrong docu or default values #1125

Description

@puschie286

hey, currently the redirect function not work like the docu describe it. Link
it result in an
Argument 3 passed to CodeIgniter\HTTP\Response::redirect() must be of the type integer, null given
because route has null as default $code value which is not valid ( but suggested by the documentation )

so what behavior is the right one ?
(personally i would remove the default value of $code ( and switch $params and $code ) )
public function route(string $route, array $params=[], int $code=null, string $method='auto')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions