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

Fix #470 - follow vendor directory symlinks

This commit is contained in:
Matt Brown 2018-01-25 11:07:16 -05:00
parent 127c743906
commit cf7c5c2a0d

View File

@ -845,7 +845,11 @@ class Config
*/
public function getComposerClassMap()
{
$vendor_dir = $this->base_dir . 'vendor'; // this should ideally not be hardcoded
$vendor_dir = realpath($this->base_dir . 'vendor'); // this should ideally not be hardcoded
if (!$vendor_dir) {
return [];
}
$autoload_files_classmap =
$vendor_dir . DIRECTORY_SEPARATOR . 'composer' . DIRECTORY_SEPARATOR . 'autoload_classmap.php';