1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

fix xsd path replacement in --init

This commit is contained in:
Gabriel Ostrolucký 2018-04-22 00:50:58 +02:00 committed by Matthew Brown
parent 6c03be3193
commit 2295756793

View File

@ -222,7 +222,7 @@ if (isset($options['i'])) {
if (!\Phar::running(false)) { if (!\Phar::running(false)) {
$template = str_replace( $template = str_replace(
'vendor/vimeo/psalm/config.xsd', 'vendor/vimeo/psalm/config.xsd',
__DIR__ . DIRECTORY_SEPARATOR . 'config.xsd', 'file://' . realpath(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'config.xsd'),
$template $template
); );
} }