Skip to content

Commit ed6620d

Browse files
[JsonPath] Fix error message when evaluating a resource
1 parent 8acf698 commit ed6620d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JsonCrawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function evaluate(JsonPath $query): array
6262

6363
if (\is_resource($this->raw)) {
6464
if (!class_exists(Splitter::class)) {
65-
throw new \LogicException('The JsonEncoder package is required to evaluate a path against a resource. Try running "composer require symfony/json-streamer".');
65+
throw new \LogicException('The JsonStreamer package is required to evaluate a path against a resource. Try running "composer require symfony/json-streamer".');
6666
}
6767

6868
$simplified = JsonPathUtils::findSmallestDeserializableStringAndPath(

0 commit comments

Comments
 (0)