From https://gerrit.wikimedia.org/r/c/mediawiki/core/+/763347
- $ok = $this->replaceLostConnection( __METHOD__, null ); + $ok = $this->replaceLostConnection( null, __METHOD__ );
Which fixed the following from https://gerrit.wikimedia.org/r/c/mediawiki/core/+/761514:
class Database { public function ping( &$rtt = null ) { $ok = $this->replaceLostConnection( __METHOD__, null ); } /** * @param int|null $lastErrno * @param string $fname * @return bool */ protected function replaceLostConnection( $lastErrno, $fname ) { $this->connLogger->warning( $fname . ': lost connection' ); } }