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

Php7 bugs (2.1.0)

After upgrade I got several errors:

Volt Bug: "'compileAlways' must be a bool value"

$volt->setOptions( array('compileAlways' => true) );

Groups Router bug: The group of routes does not contain any routes initialize() method not initialized when group mounted

$router->mount(new Frontend())

My class contain:

    use \Phalcon\Mvc\Router\Group;

    class Frontend extends Group
    {

      public function initialize()
      {

          $this->setPaths(
              array(
                  'module' => 'frontend'
              )
          );

          $this->add(
              '/',
              array(
                  'controller'    =>  'index',
                  'action'        =>  'index'
              )
          );

      }

     }
edited Mar '16

I already reported those bugs. There is compileAlways related issue, it's zephir problem, some bug in variables/typeof function, beacause there are many uses of it you can occur this problem many times, you shouldn't use phalcon on php7 at least for now:

https://github.com/phalcon/zephir/issues/1217