D
D
Dmitry Baskakov2020-05-28 11:49:53
PHP
Dmitry Baskakov, 2020-05-28 11:49:53

Why, after transferring the site from the locale to the server, did the declaration of the type of variables in the classes disappear?

Mistake:

Parse error: syntax error, unexpected 'Logger' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in C:\OSPanel\domains\ttk.loc\parser\src\lib\Log\TBuildLogger.php on line 18


Initially, I tested the console program, then it became necessary to adapt it to the web, but there was such an error. What could be the problem. On OpenServer 7.3 php version

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Panaitov, 2020-05-28
@Picknice

Most likely the problem is in the path of the class autoloader.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question