I am using a PHP / phalcon app. I have 2 copies. In server 1, I have no problems. In Server 2 (Same Code) I getting the following error.
property '<property_name>' does not have a setter
Since I have same code I am confused what to do here. I looked into php.ini error reporting as well, Since this error looks like a php complaining about the my code.
But in both places I dont have ~STRICT
.
class ClassName {
protected $email = null;
}
from outside I do,
$cls = new ClassName();
$cls->email = 'email';
In this case, The error I get is
property 'email' does not have a setter