summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/translationaids/InsertablesAid.php')
-rw-r--r--MLEB/Translate/translationaids/InsertablesAid.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/MLEB/Translate/translationaids/InsertablesAid.php b/MLEB/Translate/translationaids/InsertablesAid.php
index 0bd964f5..e2b51ee7 100644
--- a/MLEB/Translate/translationaids/InsertablesAid.php
+++ b/MLEB/Translate/translationaids/InsertablesAid.php
@@ -23,10 +23,11 @@ class InsertablesAid extends TranslationAid {
// This was added later, so not all classes have it. In addition
// the message group class hierarche doesn't lend itself easily
// to the user of interfaces for this purpose.
- if ( !method_exists( $group, 'getInsertablesSuggester' ) ) {
+ if ( !is_callable( [ $group, 'getInsertablesSuggester' ] ) ) {
throw new TranslationHelperException( 'Group does not have a suggester' );
}
+ // @phan-suppress-next-line PhanUndeclaredMethod
$suggester = $group->getInsertablesSuggester();
// It is okay to return null suggester