We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Parse error: syntax error, unexpected '[', expecting ')'

Hello

My Web sites index.php

Parse error: syntax error, unexpected '[', expecting ')' in /home/*****/public_html/index.php on line 11

index.php on line 11 \Phalcon\Mvc\Model::setup(['notNullValidations' => false]);

Help Me

Best Regards

If you are using PHP 5.3:

\Phalcon\Mvc\Model::setup(array('notNullValidations' => false));