Skip to content

Commit

Permalink
[OutputEscaper] switched to casting object as string rather than call…
Browse files Browse the repository at this point in the history
… magic method directly
  • Loading branch information
kriswallsmith authored and fabpot committed Jun 16, 2010
1 parent dc18e54 commit 8c0f7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Components/OutputEscaper/ObjectDecorator.php
Expand Up @@ -92,6 +92,6 @@ public function getRaw($key)
*/
public function __toString()
{
return $this->escape($this->escaper, $this->value->__toString());
return $this->escape($this->escaper, (string) $this->value);
}
}

0 comments on commit 8c0f7e8

Please sign in to comment.