Skip to content

Commit f42c632

Browse files
authored
Update JsonValueMatches.php (#28)
`JSONPath::data` is deprecated in favor of `JSONPath::getData`
1 parent 192e258 commit f42c632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Constraint/JsonValueMatches.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function matches($other): bool
7575

7676
foreach ($result as $v) {
7777
if ($v instanceof JSONPath) {
78-
$v = $v->data();
78+
$v = $v->getData();
7979
}
8080

8181
$singleMatchResult = $this->constraint->evaluate($v, '', true);

0 commit comments

Comments
 (0)