__toString() should call __toString() as well if possible

There may be cases that an error occurs and another _toString()
implementation handles that appropriately. This is such a case.
This commit is contained in:
Johannes Meyer 2014-09-29 11:28:58 +02:00
parent 3107eb87bb
commit 73b41769e7
1 changed files with 1 additions and 1 deletions

View File

@ -474,6 +474,6 @@ class Wizard
*/ */
public function __toString() public function __toString()
{ {
return $this->getForm()->render(); return (string) $this->getForm();
} }
} }