zendframework / zf2-documentation

Zend Framework 2 documentation sources
BSD 3-Clause "New" or "Revised" License
190 stars 571 forks source link

Syntax Error in Example Class #1512

Closed rettal closed 8 years ago

rettal commented 8 years ago

The class (Example) example in the 'Getting started' section raises a syntax error when run:

Parse error: syntax error, unexpected 'do' (T_DO), expecting identifier (T_STRING) in C:\xampp\htdocs\play\zf2\index2.php on line 29

I am on PHP 5.6.3 and ZF2 2.3.7.

I have updated the example to call 'doIt' instead of 'do'