Skip to content

Commit 3725f75

Browse files
committed
toArray() method shifted to BaseArray.
1 parent c6d4851 commit 3725f75

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/BaseArray.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public function setUndefinedOffsetAction(callable $callback)
4545
return $this;
4646
}
4747

48+
public function toArray()
49+
{
50+
return $this->container;
51+
}
52+
4853
public function offsetExists($offset) {
4954
return isset($this->container[$offset]);
5055
}

src/CompositeKeyArray.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44

55
class CompositeKeyArray extends BaseArray
66
{
7-
protected $container;
8-
protected $undefinedOffsetAction;
9-
10-
public function toArray()
11-
{
12-
return $this->container;
13-
}
14-
157
protected $offsets;
168

179
public function offsetExists($offset)

0 commit comments

Comments
 (0)