Skip to content

Commit

Permalink
fix: Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed Aug 7, 2024
1 parent b0ca85f commit 1f45c9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions eZ/Publish/Core/Persistence/Legacy/Content/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 1f45c9e

Please sign in to comment.