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
The documentation says, that I can use a variable value as property name:
let someProperty ="myProperty";
letthis->{someProperty} =100;
But I can't use variable to access a property of class in array:
publicstaticfunctiondoSomething()
{
var _array, property;
let _array = [];
let _array["index"] =newstdClass();
let property ="test";
let _array["index"]->{property} =1;
}
Compiler throws an exception:
Zephir\ParseException: Syntax error in .../TestClass.zep on line 13
let _array["index"]->{property} = 1;
----------------------^
From @SliceOfLife on December 14, 2014 12:54
The documentation says, that I can use a variable value as property name:
But I can't use variable to access a property of class in array:
Compiler throws an exception:
Zephir version 0.5.9a [396cb30]
Copied from original issue: zephir-lang/zephir#684
The text was updated successfully, but these errors were encountered: