diff --git a/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php b/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php index 66b81eeeef..430f3b7b8a 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php +++ b/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php @@ -263,6 +263,8 @@ public function publish($contentId, $versionNo, MetadataUpdateStruct $metaDataUp * @param string|null $languageCode * * @return \eZ\Publish\SPI\Persistence\Content + * + * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException */ public function createDraftFromVersion($contentId, $srcVersion, $userId, ?string $languageCode = null) { diff --git a/eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php b/eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php index d815e4c2ee..133e8904f5 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php +++ b/eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php @@ -110,9 +110,9 @@ class ContentHandlerTest extends TestCase protected $contentTypeHandlerMock; /** - * @var \eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler + * @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler */ - protected $languageHandlerMock; + private $languageHandlerMock; /** * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::create @@ -1617,7 +1617,7 @@ protected function getContentTypeHandlerMock() } /** - * @return \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler + * @return \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler */ protected function getLanguageHandlerMock(): LanguageHandler {