1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

load phpredis stubs

This commit is contained in:
Office 2022-02-09 15:56:51 +01:00
parent 9d120896d5
commit 432d0be658

View File

@ -2009,6 +2009,12 @@ class Config
$this->internal_stubs[] = $ext_decimal_path;
}
// phpredis
if (extension_loaded('redis')) {
$ext_phpredis_path = $dir_lvl_2 . DIRECTORY_SEPARATOR . 'stubs' . DIRECTORY_SEPARATOR . 'phpredis.phpstub';
$this->internal_stubs[] = $ext_phpredis_path;
}
foreach ($this->internal_stubs as $stub_path) {
if (!file_exists($stub_path)) {
throw new UnexpectedValueException('Cannot locate ' . $stub_path);