diff options
author | William Desportes <williamdes@wdes.fr> | 2020-05-11 23:30:20 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2020-05-11 23:50:06 +0300 |
commit | d5db17772984a4cb1c4e2121be15d3e70148a386 (patch) | |
tree | 461061442bb403bbd0bda8a5e79cc1ef040c0fc7 /test/bootstrap-dist.php | |
parent | b4e8fd4f9742083a0c00f96487c610a3d84ae195 (diff) |
Fix some phpstan warnings and update baselines
Ref: https://github.com/phpstan/phpstan/issues/3287
Ref: https://github.com/vimeo/psalm/issues/3350
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r-- | test/bootstrap-dist.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php index ee87a28cae..e138c08076 100644 --- a/test/bootstrap-dist.php +++ b/test/bootstrap-dist.php @@ -83,7 +83,9 @@ define('PMA_MAJOR_VERSION', $GLOBALS['PMA_Config']->get('PMA_MAJOR_VERSION')); // phpcs:enable /* Ensure default language is active */ -LanguageManager::getInstance()->getLanguage('en')->activate(); +/** @var \PhpMyAdmin\Language $languageEn */ +$languageEn = LanguageManager::getInstance()->getLanguage('en'); +$languageEn->activate(); /* Load Database interface */ $GLOBALS['dbi'] = DatabaseInterface::load(new DbiDummy()); @@ -91,6 +93,8 @@ $GLOBALS['dbi'] = DatabaseInterface::load(new DbiDummy()); // Set proxy information from env, if available $http_proxy = getenv('http_proxy'); if (PHP_SAPI == 'cli' && $http_proxy && ($url_info = parse_url($http_proxy))) { + /** @var string[] */ + $url_info = $url_info; // phpcs:disable PSR1.Files.SideEffects define('PROXY_URL', $url_info['host'] . ':' . $url_info['port']); define('PROXY_USER', empty($url_info['user']) ? '' : $url_info['user']); |