You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function __set(string! name, value)
{
let this->_sourceObject->{name} = value;
}
This is in the top of my class:
protected this->_sourceObject = null;
Further, I want to use the ReflectionClass to use many types of objects. I can imagine setting _sourceObject to null is a problem since Zephir compiles it and doesn't know much about PHP using this dynamically. Any hints how to avoid this is welcome.
The error I get is:
Zephir\ParseException: Syntax error in /vagrant/project/project/object/Interrogator.zep on line 47
let this->_sourceObject->{name};
--------------------------------^
The text was updated successfully, but these errors were encountered:
I use this code:
This is in the top of my class:
Further, I want to use the ReflectionClass to use many types of objects. I can imagine setting _sourceObject to null is a problem since Zephir compiles it and doesn't know much about PHP using this dynamically. Any hints how to avoid this is welcome.
The error I get is:
The text was updated successfully, but these errors were encountered: