mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix #552 - fix path that stubs are loaded from
This commit is contained in:
parent
3b48f43fdc
commit
9d48585b0e
@ -461,11 +461,11 @@ class Config
|
||||
if (isset($config_xml->stubs) && isset($config_xml->stubs->file)) {
|
||||
/** @var \SimpleXMLElement $stub_file */
|
||||
foreach ($config_xml->stubs->file as $stub_file) {
|
||||
$file_path = realpath($stub_file['name']);
|
||||
$file_path = realpath($config->base_dir . DIRECTORY_SEPARATOR . $stub_file['name']);
|
||||
|
||||
if (!$file_path) {
|
||||
throw new Exception\ConfigException(
|
||||
'Cannot resolve stubfile path ' . getcwd() . '/' . $stub_file['name']
|
||||
'Cannot resolve stubfile path ' . $config->base_dir . DIRECTORY_SEPARATOR . $stub_file['name']
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user