mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
1e0d2d93b3
I found this error in our logstash. I was not able to find an existing Phabricator ticket. Note how line #348 extracts the last element from the $siblings array. It uses the function end() there, which returns false in case the array is empty. $siblings[0] can't do this but yields an error. An alternative is to use reset(), which can return false as well. But that's not really better. Especially not better readable, I would argue. Change-Id: Ic90cd2392ede15078ba0d5b4d67b8dc5d05f9bf7 |
||
---|---|---|
.phan | ||
i18n | ||
images | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json |