File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ public function canAdvance()
1414
1515 public function advance ()
1616 {
17- $ data = &$ this
17+ $ cursorData = &$ this
1818 ->getCursor ()
19- ->getData ()[$ this ->getKey ()];
19+ ->getData ();
20+ $ cursorData = &$ cursorData [$ this ->getKey ()];
2021 $ this
2122 ->getCursor ()
22- ->setData ($ data );
23+ ->setData ($ cursorData );
2324 return $ this ;
2425 }
2526
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ public function canAdvance()
1414
1515 public function advance ()
1616 {
17- $ data = &$ this
17+ $ cursorData = &$ this
1818 ->getCursor ()
19- ->getData ()
20- ->{$ this ->getKey ()};
19+ ->getData ();
20+ $ cursorData = & $ cursorData ->{$ this ->getKey ()};
2121 $ this
2222 ->getCursor ()
23- ->setData ($ data );
23+ ->setData ($ cursorData );
2424 return $ this ;
2525 }
2626
You can’t perform that action at this time.
0 commit comments