X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FActorMigration.php;h=597b8e76e79e06bbe0245bea7b3e7deb4e0fac94;hb=d7451a03e98568652ba8b0a1c31034c04d5a7992;hp=0c33eb9bfcfbfb0e82999f52330416c3fc2f58a4;hpb=993baa3493f17161847ce4545927d42e7861aae9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ActorMigration.php b/includes/ActorMigration.php index 0c33eb9bfc..597b8e76e7 100644 --- a/includes/ActorMigration.php +++ b/includes/ActorMigration.php @@ -136,11 +136,7 @@ class ActorMigration { * @return string[] [ $text, $actor ] */ private static function getFieldNames( $key ) { - if ( isset( self::$specialFields[$key] ) ) { - return self::$specialFields[$key]; - } - - return [ $key . '_text', substr( $key, 0, -5 ) . '_actor' ]; + return self::$specialFields[$key] ?? [ $key . '_text', substr( $key, 0, -5 ) . '_actor' ]; } /**