PHP: 7.3.6
MediaWiki 1.33.0
SocialProfile: latest commit on master branch
Special:TopFansByStatistic throws an error in PHP 7.3
[766a0c7191d77eeb17f45d8a] /index.php?title=Special:TopFansByStatistic&stat=gifts_sent_count Error from line 184 of /var/www/html/extensions/SocialProfile/UserStats/includes/specials/TopFansByStat.php: Call to undefined method LanguageEn::truncate()
Backtrace:
#0 /var/www/html/includes/specialpage/SpecialPage.php(569): TopFansByStat->execute(NULL)
#1 /var/www/html/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
#2 /var/www/html/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#3 /var/www/html/includes/MediaWiki.php(865): MediaWiki->performRequest()
#4 /var/www/html/includes/MediaWiki.php(515): MediaWiki->main()
#5 /var/www/html/index.php(42): MediaWiki->run()
#6 {main}
To Reproduce:
Install MediaWiki 1.33 and latest master commit of SocialProfile with PHP 7.3
Go to special:TopFansByStatistic&stat=gifts_sent_count (or any other stat)
Error is thrown.