• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
redirect->route wrong docu or default values

#1
hey, currently the redirect function not work like the docu describe it. Link
it result in an
Code:
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 ) )

Code:
public function route(string $route, array $params=[], int $code=null, string $method='auto')
Reply

#2
Please report any bugs in GitHub issues. They'll just get lost here. Smile
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply

#3
created issue
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.