DBError expects IDatabase|null as its first argument
authorStephane Bisson <sbisson@wikimedia.org>
Tue, 1 Nov 2016 14:51:13 +0000 (10:51 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Tue, 1 Nov 2016 14:51:13 +0000 (10:51 -0400)
commite87858e4f3442700b20a00b5d93098dce02eed49
treed9b0546b6d3b6c1e59a2b5da1d6087379380a7df
parent8301496398bfda1ef9f0647f7b15b170cb407baf
DBError expects IDatabase|null as its first argument

I came across LBFactory.php:357 while testing my
master/replica db setup. It was not configured correctly
and I got "Argument 1 passed to DBExpectedError::__construct()
must implement interface IDatabase, string given" instead
of the actual error.

Change-Id: I949e1803f84459f8bb83e957a88d1e927cad16f7
includes/libs/rdbms/exception/DBAccessError.php
includes/libs/rdbms/lbfactory/LBFactory.php