PHP Classes

Cannot start

Recommend this page to a friend!

      PHP Code formatter  >  All threads  >  Cannot start  >  (Un) Subscribe thread alerts  
Subject:Cannot start
Summary:Attempting to run phpcf gives errors
Messages:1
Author:Nigel Gilbert
Date:2014-10-26 18:31:30
 

  1. Cannot start   Reply   Report abuse  
Picture of Nigel Gilbert Nigel Gilbert - 2014-10-26 18:31:30
I tried:

./phpcf

and got:

PHP Parse error: syntax error, unexpected '[', expecting ')' in /Users/scs1ng/Downloads/phpcf-2014-08-06/phpcf-src/src/ClassLoader.php on line 45

Parse error: syntax error, unexpected '[', expecting ')' in /Users/scs1ng/Downloads/phpcf-2014-08-06/phpcf-src/src/ClassLoader.php on line 45


This is the php I'm running:

php -v
PHP 5.3.28 (cli) (built: Dec 26 2013 23:06:03)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

Can you help? thanks