Skip to content

Commit

Permalink
Correct test for #1494
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Nov 2, 2019
1 parent 2ca41ef commit a745ebf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/spropertyaccess.zep
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ class SPropertyAccess
*/
public static function mutateArrayVarInsideCycle() -> array
{
var i;
var i, j;

for _ in range(0, 3) {
let i = [1];
let self::arrayVar = self::arrayVar + i;
for i in range(0, 3) {
let j = [i: i];
let self::arrayVar = self::arrayVar + j;
}

return self::arrayVar;
Expand Down

0 comments on commit a745ebf

Please sign in to comment.