jacwright / RestServer

A PHP REST server for providing a very light-weight REST API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse error

qazimusab opened this issue · comments

I just copied over the example to my server and am getting this error in RestServer.php:

Parse error: syntax error, unexpected '[' in /home/content/46/12363346/html/gomedina/REST/RestServer-master/RestServer-master/source/Jacwright/RestServer/RestServer.php on line 260

This is because you are using an older version of PHP (< 5.4). There is no reason we need to use the newer syntax however. I will make a fix for this.

Fixed in 8cc8ae9 and is in master. Let me know if that worked for you.