Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Fix __toString method must return a string #727

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ public function getContent()
return $this->_content;
}

/**
* @return string
*/
public function __toString()
{
return $this->_content;
return strval($this->_content);
}
}