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

incubator and phalcon 4.0.6


I'm using macos port of phalcon and php 7.4. The version supplied in ports of phalcon is 4.0.6.

Using incubator I get the following. I've tried a few branchs of incubator

Fatal error: Declaration of Phalcon\Mvc\View\SmartyView::setVar($key, $value, $nocache = false) must be compatible with Phalcon\Mvc\View::setVar(string $key, $value): Phalcon\Mvc\View in */incubator/Library/Phalcon/Mvc/View/SmartyView.php on line 14

Phalcon is a full stack PHP framework, delivered as a PHP extension, offering lower resource consumption and high performance.
phalcon => enabled
Author => Phalcon Team and contributors
Version => 4.0.6
Build Date => May 21 2020 07:17:24
Powered by Zephir => Version 0.12.17-6724dbf

Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.case_insensitive_column_map => Off => Off
phalcon.orm.cast_last_insert_id_to_int => Off => Off
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.column_renaming => On => On
phalcon.orm.disable_assign_setters => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.enable_literals => On => On
phalcon.orm.events => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.exception_on_failed_metadata_save => On => On
phalcon.orm.ignore_unknown_columns => Off => Off
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.not_null_validations => On => On
phalcon.orm.update_snapshot_on_save => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.warning.enable => On => On

How do I fix this ?


edited Nov '20

I've just spent the morning, setting up a docker image but the result is the same.

I can only assume that incubator is incompatiable with the current release of phalcon.

This is a real pain.

It seems quite complicated to me.

edited Dec '20

We're going to handle a client's project that is already using Phalcon Framework. TBH I just recently heard of it. I heard that it's fast because it's running in C? Aside from that, I was checking the repo and it's not as active as Laravel/Symfony. There are few good Docs/resources/tutorials that I can find, I'd appreciate if someone can point me to a good resource aside from the official doc. thanks!