Skip to content

Commit a9d9b4a

Browse files
committed
Fixed PHP 5.6 incompatibilities
1 parent 0069837 commit a9d9b4a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/Pointer/Evaluate/AdvancerIndex.php

+4-3
Original file line numberDiff line numberDiff 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

src/Pointer/Evaluate/AdvancerProperty.php

+4-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)