Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Apr 9, 2024
1 parent 195c63b commit ac56356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 6 additions & 3 deletions src/contracts/Repository/Values/Content/VersionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ abstract class VersionInfo extends ValueObject implements MultiLanguageName
*
* @var string[]
*/
protected $languageCodes = [];
protected array $languageCodes = [];

/**
* Content of the content this version belongs to.
Expand All @@ -108,9 +108,12 @@ abstract public function getInitialLanguage(): Language;
abstract public function getLanguages(): iterable;

/**
* @return iterable<string>
* @return array<string>
*/
abstract public function getLanguageCodes(): iterable;
public function getLanguageCodes(): array
{
return $this->languageCodes;
}

/**
* Returns true if version is a draft.
Expand Down
5 changes: 0 additions & 5 deletions src/lib/Repository/Values/Content/VersionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ public function getLanguages(): iterable
return $this->languages;
}

public function getLanguageCodes(): iterable
{
return $this->languageCodes;
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit ac56356

Please sign in to comment.