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

Use relative path for config.xsd

Fixes #1472
This commit is contained in:
Matthew Brown 2019-03-17 15:02:51 -04:00
parent 8392faf77d
commit 94dadee12a

View File

@ -368,14 +368,6 @@ if (isset($options['i'])) {
$template
);
if (!\Phar::running(false)) {
$template = str_replace(
'vendor/vimeo/psalm/config.xsd',
'file://' . realpath(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'config.xsd'),
$template
);
}
if (!file_put_contents($current_dir . 'psalm.xml', $template)) {
die('Could not write to psalm.xml' . PHP_EOL);
}