We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

T_OBJECT_OPERATOR error in (new Phalcon\Debug)->listen();

What's the problem?



98.9k
Accepted
answer

In PHP 5.3 that syntax is not supported, it must be:

$debug = new Phalcon\Debug;
$debug->listen();