Skip to content

Commit 22d25e6

Browse files
committed
Re-Added method data() to JSONPath
data() is deprecated. Please use getData() instead.
1 parent 8669ab9 commit 22d25e6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "softcreatr/jsonpath",
33
"description": "JSONPath implementation for parsing, searching and flattening arrays",
4-
"version": "0.6.1",
4+
"version": "0.6.2",
55
"license": "MIT",
66
"authors": [
77
{

src/JSONPath.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ public function getData()
167167
return $this->data;
168168
}
169169

170+
/**
171+
* @deprecated Please use getData()
172+
*/
173+
public function data()
174+
{
175+
return $this->getData();
176+
}
177+
170178
/**
171179
* @param $data
172180
* @return $this

0 commit comments

Comments
 (0)