Welcome Guest, Not a member yet? Register   Sign In
Problem run via the command-line [SOLVED]
#3

(09-07-2021, 09:08 AM)paulbalandan Wrote: Please show what code is in line 49



PHP Code:
if (! function_exists('app_timezone'))
{
 
/**
 * Returns the timezone the application has been set to display
 * dates in. This might be different than the timezone set
 * at the server level, as you often want to stores dates in UTC
 * and convert them on the fly for the user.
 *
 * @return string
 */ 
 
function app_timezone(): string
 
{
 
$config config(App::class);

 return 
$config->appTimezone;
 }



Line 49 is:  function app_timezone(): string

If I delete this function, the same PHP Parse error appear next function has syntax "function {any_name} : string".

I think Terminal don't accept syntax "function {any_name} : string". But This is Ci4 System file, I don't interfere
Reply


Messages In This Thread
RE: Problem run via the command-line - by hieuhiti - 09-07-2021, 03:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB