10000 minor #35894 [ExpressionLanguage] Fixed exception message (atailouloute) · symfony/symfony@0888ff6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0888ff6

Browse files
committed
minor #35894 [ExpressionLanguage] Fixed exception message (atailouloute)
This PR was merged into the 5.1-dev branch. Discussion ---------- [ExpressionLanguage] Fixed exception message | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 4d695b3 [ExpressionLanguage] Fixed exception message
2 parents 146945a + 4d695b3 commit 0888ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ExpressionLanguage/Node/GetAttrNode.php

< 7879 /div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function evaluate(array $functions, array $values)
8080
case self::METHOD_CALL:
8181
$obj = $this->nodes['node']->evaluate($functions, $values);
8282
if (!\is_object($obj)) {
83-
throw new \RuntimeException('Unable to get a property on a non-object.');
83+
throw new \RuntimeException('Unable to call method of a non-object.');
8484
}
8585
if (!\is_callable($toCall = [$obj, $this->nodes['attribute']->attributes['value']])) {
8686
throw new \RuntimeException(sprintf('Unable to call method "%s" of object "%s".', $this->nodes['attribute']->attributes['value'], \get_class($obj)));

0 commit comments

Comments
 (0)
0