KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Upgraded to 3.25.3 prod - Error in DataStore.php #678

Open Eric opened this topic on on Feb 14, 2019 - 4 comments

Eric commented on Feb 14, 2019

Hello, I'm getting this error (DataStore.php on line 1166) Parse error: syntax error, unexpected 'clone' (T_CLONE), expecting identifier (T_STRING)

Is Php 7 not supported??

Thanks,

Eric

Eric commented on Feb 14, 2019

Also $func(new DataStore($data, $this->metaData), $start);

$func must be a callable??

KoolReport commented on Feb 14, 2019

We tested with php 7.0, 7.2, 7.3 but do have this issues.About the first issue (T_CLONE), it could be that "clone" is reserved keywords in your php version, you may change the name to "doClone()". May I know the exact version of your PHP?

About the second $func(new DataStore($data, $this->metaData), $start);, yes the $func will be callable function. Does it throw any error to you?

Eric commented on Feb 14, 2019

Using PHP 7.2 - Yes clone is reserved. I'lll change the name to doClone() then. $func in the phpStorm editor it complains about $func must be a callable.

Thanks

KoolReport commented on Feb 14, 2019

It is the complanation of phpstorm right? You do not have any issue when using the library (like error, warning), dont you?

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None