Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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

What's the problem?



85.4k
Accepted
answer

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

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