-
-
Notifications
You must be signed in to change notification settings - Fork 468
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 class property if default is array #520
Labels
Comments
ovr
added a commit
to ovr/zephir
that referenced
this issue
Sep 10, 2014
This bug is caused because PHP is not support default array value for properties I added fix bug soon we need to added optimizer for it |
Thanks @ovr |
Not a problem, Happy coding with Zephir 😸 |
One more small related issue :) I can't set the default data if extends: <?php
class Users extends Test
{
protected $_data = [
'id',
'username',
'password',
];
} $user = new Users();
var_dump($user->getData()) I'm trying without constructor now: class Test
{
protected _data = ["key": "value"] { set, get };
} |
Open new issue please, I will try to fix it as soon as I can |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works fine if the data is without default array:
The text was updated successfully, but these errors were encountered: