Skip to content

Commit 97cd67d

Browse files
committed
Fixed undefined offset case for OneOffArray.
1 parent 57a2a69 commit 97cd67d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Compared to `CompositeKeyArray`, `XPathKeyArray` has some limitations:
162162

163163
## Dotted Key Array
164164

165-
**This is not a real xpath!** This class instead of array-like key users string of keys delimited with `/`.
165+
This class instead of array-like key users string of keys delimited with `.`.
166166

167167
```php
168168
$array = new DottedKeyArray([

src/OneOffArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class OneOffArray extends BaseArray
66
{
77
public function offsetGet($offset)
88
{
9-
$value = $this->container[$offset];
9+
$value = parent::offsetGet($offset);
1010
unset($this->container[$offset]);
1111

1212
return $value;

0 commit comments

Comments
 (0)