From cc731404565c2e9d8304cfa5f86e77a3dd19d5bd Mon Sep 17 00:00:00 2001 From: Jacek Foremski Date: Fri, 2 Mar 2018 16:12:19 +0100 Subject: [PATCH] EZP-28886: Method eZ\Publish\Core\FieldType\Page\Value::__toString() does not always return String (#2265) --- eZ/Publish/Core/FieldType/Page/Value.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Publish/Core/FieldType/Page/Value.php b/eZ/Publish/Core/FieldType/Page/Value.php index 38831d7405..4fe6751cd3 100644 --- a/eZ/Publish/Core/FieldType/Page/Value.php +++ b/eZ/Publish/Core/FieldType/Page/Value.php @@ -38,7 +38,7 @@ public function __construct(Page $page = null) public function __toString() { if ($this->page instanceof Page) { - return $this->page->layout; + return (string)$this->page->layout; } return '';