diff --git a/Document/ArticleViewDocument.php b/Document/ArticleViewDocument.php index 15585cdc4..305d1d585 100644 --- a/Document/ArticleViewDocument.php +++ b/Document/ArticleViewDocument.php @@ -879,7 +879,7 @@ public function setTargetWebspace($targetWebspace) /** * {@inheritdoc} */ - public function getContentFields(): array + public function getContentFields() { return $this->contentFields; } diff --git a/Document/ArticleViewDocumentInterface.php b/Document/ArticleViewDocumentInterface.php index f04923f7d..62d4f710e 100644 --- a/Document/ArticleViewDocumentInterface.php +++ b/Document/ArticleViewDocumentInterface.php @@ -512,7 +512,7 @@ public function setTargetWebspace($targetWebspace); /** * @return string[] */ - public function getContentFields(): array; + public function getContentFields(); /** * @param string[] $searchableContent diff --git a/Tests/Functional/Controller/TemplateControllerTest.php b/Tests/Functional/Controller/TemplateControllerTest.php index 46f5964f8..97d4eeb70 100644 --- a/Tests/Functional/Controller/TemplateControllerTest.php +++ b/Tests/Functional/Controller/TemplateControllerTest.php @@ -23,8 +23,8 @@ public function testGet() $this->assertHttpStatusCode(200, $client->getResponse()); $response = json_decode($client->getResponse()->getContent(), true); - $this->assertEquals(2, $response['total']); - $this->assertCount(2, $response['_embedded']); + $this->assertEquals(3, $response['total']); + $this->assertCount(3, $response['_embedded']); $this->assertContains( [ 'internal' => false,