Skip to content

Commit bc437a2

Browse files
committed
Fixed php < 7 compatibility issue.
1 parent 3725f75 commit bc437a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BaseArray.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public function offsetGet($offset) {
5959
return $this->container[$offset];
6060
}
6161

62-
return ($this->undefinedOffsetAction)($this->container, $offset);
62+
$undefinedOffsetAction = $this->undefinedOffsetAction;
63+
64+
return $undefinedOffsetAction($this->container, $offset);
6365
}
6466

6567
public function offsetSet($offset, $value) {

0 commit comments

Comments
 (0)