File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ This library allows usage of [RFC6901](https://tools.ietf.org/html/rfc6901)-comp
13
13
14
14
##Features
15
15
* Supports PHP 5.6, PHP 7.0 and HHVM
16
- * No extensions required
16
+ * No PHP extensions required
17
17
* Throws SPL exceptions
18
18
19
19
#License
@@ -71,13 +71,13 @@ $result = $pointer
71
71
// Treating PHP arrays as objects (not compliant with RFC6901, but
72
72
// it's the only way to access non-numeric index in PHP array).
73
73
$subData = ['g' => 2, 'h' => 3];
74
+ $pointer->write($subData); // Sets $data->a->c to ['g' => 2, 'h' => 3].
74
75
$link = '/a/c/g'; // Link to non-numeric index of array.
75
- $result = $pointer
76
- ->write($subData) // Sets $data->a->c to ['g' => 2, 'h' => 3].
76
+ $result = $pointer
77
77
->setText($link)
78
78
->test(); // Sets $result to FALSE.
79
79
$result $pointer
80
- ->setOptions(Pointer::OPTION_NON_NUMERIC_ARRAY_INDICES )
80
+ ->setOptions(Pointer::OPTION_NON_NUMERIC_INDICES )
81
81
->test(); // Sets $result to TRUE.
82
82
echo $pointer->read(); // 2
83
83
```
Original file line number Diff line number Diff line change @@ -67,8 +67,6 @@ protected function processNonExistingArrayIndex(Reference $reference)
67
67
$ result = null ;
68
68
return $ this ->setResult ($ result );
69
69
}
70
- var_export ($ this ->cursor );
71
- var_export ($ index );
72
70
$ indexText = is_int ($ index ) ? "{$ index }" : "' {$ index }' " ;
73
71
throw new EvaluateException ("Accessing non-existing index {$ indexText } in array " );
74
72
}
You can’t perform that action at this time.
0 commit comments