Skip to content

Commit beeb5a9

Browse files
authored
JsonPath: use getData() instead of deprecated data()
* Update JsonArray.php * Update JsonArray.php
1 parent 77cba3d commit beeb5a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Util/JsonArray.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public function filterByXPath($xpath)
8585
public function filterByJsonPath($jsonPath)
8686
{
8787
if (!class_exists('Flow\JSONPath\JSONPath')) {
88-
throw new \Exception('JSONPath library not installed. Please add `flow/jsonpath` to composer.json');
88+
throw new \Exception('JSONPath library not installed. Please add `softcreatr/jsonpath` to composer.json');
8989
}
90-
return (new JSONPath($this->jsonArray))->find($jsonPath)->data();
90+
return (new JSONPath($this->jsonArray))->find($jsonPath)->getData();
9191
}
9292

9393
public function getXmlString()

0 commit comments

Comments
 (0)