Spotted in production: Warning: min(): Array must contain at least one element in /srv/mediawiki/php-1.31.0-wmf.5/extensions/ContentTranslation/api/ApiQueryTranslatorStats.php on line 57
Description
Details
Event Timeline
Change 388033 had a related patch set uploaded (by Petar.petkovic; owner: Petar.petkovic):
[mediawiki/extensions/ContentTranslation@master] Fix PHP warning for min() method
Dunno if these two are related or not:
- Notice: Undefined property: ApiQueryContentTranslation::$user in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 120
- Notice: Undefined variable: translation in /srv/mediawiki/php-1.31.0-wmf.6/extensions/ContentTranslation/api/ApiQueryContentTranslation.php on line 126
Those two "Notices" are related to each other and one problem causes both of them to appear, but aren't related to the warning originally reported in the description of this ticket.
Two of those are introduced in this patch. @santhosh, please take a look at this.
Fixed in https://gerrit.wikimedia.org/r/388388 ApiQueryContentTranslation: Fix php warnings
Change 388033 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Fix PHP warning for min() method
Change 388460 had a related patch set uploaded (by Chad; owner: Petar.petkovic):
[mediawiki/extensions/ContentTranslation@wmf/1.31.0-wmf.6] Fix PHP warning for min() method
Change 388460 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@wmf/1.31.0-wmf.6] Fix PHP warning for min() method