jbroadway/analog

PHP Parse error on Echo handler

nhymxu opened this issue · 0 comments

PHP version: 7.1.33

Example

<?php

require 'vendor/autoload.php';

use \Analog\Analog;

Analog::handler (Analog\Handler\Echo::init ());
Analog::log ('Log me');

Error

PHP Parse error:  syntax error, unexpected 'Echo' (T_ECHO), expecting identifier (T_STRING) or '{' in /path/to/your/script.php on line 7

Parse error: syntax error, unexpected 'Echo' (T_ECHO), expecting identifier (T_STRING) or '{' in /path/to/your/script.php on line 7