Use callable type-hint in a few places
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 7 Jun 2016 23:39:06 +0000 (16:39 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 7 Jun 2016 23:39:22 +0000 (16:39 -0700)
commit4a8ae0a0b466ed300d75e7f77046683be459c03d
tree47a9d9a2e814cdfc18f40422437e36da34a6d3c2
parentc704ec36c8df0764e63b1a5f03a6408847d85caa
Use callable type-hint in a few places

Mostly places which immediately had a:
 if ( !is_callable( $callback ) ) {
  throw new Exception(...);
 }
check at the beginning of the function.

Change-Id: Ia78663b2231629010816bd1cda8814b996968d1d
includes/db/DBConnRef.php
includes/db/Database.php
includes/db/IDatabase.php
includes/libs/objectcache/BagOStuff.php
includes/libs/objectcache/EmptyBagOStuff.php
includes/libs/objectcache/MemcachedBagOStuff.php
includes/libs/objectcache/ReplicatedBagOStuff.php
includes/libs/objectcache/WinCacheBagOStuff.php
includes/objectcache/SqlBagOStuff.php