Skip to content

Commit 85a616c

Browse files
committed
Refactored LanguageServiceTest and added stricter validation for LanguageCreateStruct
1 parent 89868aa commit 85a616c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/Repository/LanguageService.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,9 @@ public function __construct(
6262
/**
6363
* Creates the a new Language in the content repository.
6464
*
65-
* @param \Ibexa\Contracts\Core\Repository\Values\Content\LanguageCreateStruct $languageCreateStruct
66-
*
67-
* @return \Ibexa\Contracts\Core\Repository\Values\Content\Language
68-
*
6965
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException If user does not have access to content translations
7066
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException if the languageCode already exists
67+
* @throws \Ibexa\Contracts\Core\Validation\ValidationFailedException
7168
*/
7269
public function createLanguage(LanguageCreateStruct $languageCreateStruct): Language
7370
{

0 commit comments

Comments
 (0)