Skip to content

Commit 681d4e7

Browse files
committed
minor symfony#60072 [JsonPath] Fix error message when evaluating a resource (alexandre-daubois)
This PR was merged into the 7.3 branch. Discussion ---------- [JsonPath] Fix error message when evaluating a resource | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT After symfony#59655 (comment) Commits ------- e5cc3d4 [JsonPath] Fix error message when evaluating a resource
2 parents b37086d + e5cc3d4 commit 681d4e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/JsonPath/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)