From a2614b1a464dbeb437f873e158abe3755f1c170e Mon Sep 17 00:00:00 2001 From: pine3ree Date: Fri, 16 Sep 2022 10:31:19 -0400 Subject: [PATCH] Add PR #240 fix phpdoc return type in LanguagesPageFieldValue::getLanguageValue() method --- wire/core/Interfaces.php | 2 +- wire/modules/LanguageSupport/LanguagesPageFieldValue.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/core/Interfaces.php b/wire/core/Interfaces.php index 3a76aebd..c084b335 100644 --- a/wire/core/Interfaces.php +++ b/wire/core/Interfaces.php @@ -519,7 +519,7 @@ interface LanguagesValueInterface { * Given a language, returns the value in that language * * @param Language|int - * @return int + * @return string|mixed * */ public function getLanguageValue($languageID); diff --git a/wire/modules/LanguageSupport/LanguagesPageFieldValue.php b/wire/modules/LanguageSupport/LanguagesPageFieldValue.php index b69ebd1a..722f2a1c 100644 --- a/wire/modules/LanguageSupport/LanguagesPageFieldValue.php +++ b/wire/modules/LanguageSupport/LanguagesPageFieldValue.php @@ -208,7 +208,7 @@ class LanguagesPageFieldValue extends Wire implements LanguagesValueInterface, \ * Given a language, returns the value in that language * * @param Language|int|string Language object, id, or name - * @return int + * @return string|mixed * */ public function getLanguageValue($languageID) {