• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advanced languages

#2
I agree. In previous version it was. But changed . So had to remove 'string' return type to solve problem.

I know that it is not good to change in system file.

PHP Code:
    function lang(string $line, array $args = [], string $locale null): string
    
{
        return 
Services::language($locale)
                        ->
getLine($line$args);
    } 

"getLine()" function returns string and array both, but "lang()" function returns only string. I think it's need to update
Reply


Messages In This Thread
Advanced languages - by davis.lasis - 04-06-2019, 10:35 AM
RE: Advanced languages - by vebo - 07-10-2019, 05:25 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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