Fix inconsistent spec of InterwikiLookup::getAllPrefixes.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 2 May 2017 19:44:05 +0000 (21:44 +0200)
committerDaniel Kinzler <daniel.kinzler@wikimedia.de>
Thu, 4 May 2017 08:40:35 +0000 (08:40 +0000)
commit7b45d112e6bf5c06013fc1709f7554da5dc44e10
tree70ea762ac0fb58a6c3d0a4c608877eb1b89081e6
parentca61e20e3d14e6a807c13ce58897f9b9bd63b5da
Fix inconsistent spec of InterwikiLookup::getAllPrefixes.

The documented return type was not what existing callers expected,
and not what the default implementation actually returned.

This patch fixes the interface documentation and the behavior of
an alternative implementation.

Change-Id: Ib09bffeba3ddc5b43da1c7c299f1fa946be4e2e2
includes/interwiki/Interwiki.php
includes/interwiki/InterwikiLookup.php
includes/interwiki/InterwikiLookupAdapter.php
tests/phpunit/includes/interwiki/InterwikiLookupAdapterTest.php