Skip to content

Commit eea10d7

Browse files
committed
Updated comment for multilingualCollection factory method to have correct type for Language.
1 parent e4ffe0d commit eea10d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Factory/DataValueFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static function multilingualCollectionWithSingleLanguageFromArray(Languag
135135

136136
/** This method takes an array of arrays with two keys "Language" being a Language and "Values" being an array of strings.
137137
* Example:
138-
* array(array("Language" => "da", "Values" => array("Hallo")), array("Language" => "en", "Values" => array("Hello")))
138+
* array(array("Language" => Language::create("da"), "Values" => array("Hallo")), array("Language" => Language::create("en"), "Values" => array("Hello")))
139139
*/
140140
public static function multilingualCollection(array $values) : DataValue {
141141
return DataValue::create()

0 commit comments

Comments
 (0)