ulearn icon indicating copy to clipboard operation
ulearn copied to clipboard

Unsupported strict types

Open fadlisaad opened this issue 5 years ago • 1 comments

After following the instruction, all has been completed and expect it to run but found out this error in the log:

PHP Warning:  Unsupported declare 'strict_types' in /home/app/vendor/nette/di/src/compatibility.php on line 8

PHP Warning:  Unsupported declare 'strict_types' in /home/app/vendor/nette/di/src/DI/Config/Adapter.php on line 8

PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/app/vendor/nette/di/src/DI/Config/Adapter.php on line 22

Appreciate your kind help

fadlisaad avatar Dec 04 '19 13:12 fadlisaad

Are you running php 7? Ulearn needs at least 7.1 to run and strict_types was released in 7.0 I have searched around and found some weird missing extensions related to this problem, specially mb_string. You shoud check system requirements.

rafaelmb avatar Dec 09 '19 18:12 rafaelmb