-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't overwrite the default array data if extends [$10 awarded] #537
Comments
@ovr any progress on this issue? |
Also if namespace Pro\Di;
use Pro\Di;
class Test
{
protected _di;
public function __construct()
{
let this->_di = Di::getDefault();
}
} I get something like this:
It occurs if I set some default attribute as array in the |
It looks like it calls this assign after extends, @ovr could you confirm? |
@mruz Sure it does: Can't think of a solution, which wouldn't require refactoring how it currently works. |
@steffengy could user construct calls parent construct before user?
|
Fix #537: Make sure class properties are initialized in the right order
Users, improvements after Ice 1.0.14, zephir-lang/zephir/issues/537
@sergeyklay @dreamsxin I have a feeling this issue returned. I will check/confirm it later. |
Feel free to open a new issue if the problem appears again. |
@mruz I found the issue. Working on solution |
Closing this one in favor of #2089 |
I can't set the default array data if extends:
Issue related to #520
The text was updated successfully, but these errors were encountered: