wiki.techinc.nl/includes/config
Derick Alangi 63bdfb3cf6 config: Intentionally throw TypeError for unsupported sources
For config sources that are not supported i.e. not either of the
following (Config, ServiceOptions or array), we should fail hard
as we don't want to allow anything else apart from those.

`array_key_exists()` would throw a TypeError if a source is `null`
for example which would be the appropriate behavior here since we
don't support that.

This was introduced in I06d16b473b256d3f9 (3e495f35c4) and
a simpler fix to the PSR-12 warning is not to do the `if(..){}` inside
an `else`, but use `elseif(..){}` instead.

Change-Id: Ib928871b6b4cefb6872484437ecb4c04a9327bad
2024-07-24 15:54:41 +00:00
..
Config.php
ConfigException.php
ConfigFactory.php Drop hard-deprecated ConfigFactory::getDefaultInstance() 2024-04-21 23:22:38 +03:00
ConfigRepository.php docs: Adjust all @deprecated tags to use 'since…' for consistency 2024-05-01 07:41:18 +01:00
EtcdConfig.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
EtcdConfigParseError.php
GlobalVarConfig.php
HashConfig.php
IterableConfig.php
MultiConfig.php
MutableConfig.php
ServiceOptions.php config: Intentionally throw TypeError for unsupported sources 2024-07-24 15:54:41 +00:00
SiteConfiguration.php Merge "config: Remove unused extractGlobal() and extractVar()" 2024-07-22 14:53:48 +00:00