File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ public function canAdvance()
14
14
15
15
public function advance ()
16
16
{
17
- $ data = &$ this
17
+ $ cursorData = &$ this
18
18
->getCursor ()
19
- ->getData ()[$ this ->getKey ()];
19
+ ->getData ();
20
+ $ cursorData = &$ cursorData [$ this ->getKey ()];
20
21
$ this
21
22
->getCursor ()
22
- ->setData ($ data );
23
+ ->setData ($ cursorData );
23
24
return $ this ;
24
25
}
25
26
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ public function canAdvance()
14
14
15
15
public function advance ()
16
16
{
17
- $ data = &$ this
17
+ $ cursorData = &$ this
18
18
->getCursor ()
19
- ->getData ()
20
- ->{$ this ->getKey ()};
19
+ ->getData ();
20
+ $ cursorData = & $ cursorData ->{$ this ->getKey ()};
21
21
$ this
22
22
->getCursor ()
23
- ->setData ($ data );
23
+ ->setData ($ cursorData );
24
24
return $ this ;
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments