Add support for phan/phan

This commit is contained in:
Shivam Mathur
2020-05-21 03:51:28 +05:30
parent a48ff666f8
commit b1776b79c8
7 changed files with 26 additions and 3 deletions

View File

@ -165,7 +165,10 @@ Function Add-Tool() {
Add-Content -Path $current_profile -Value "New-Alias $tool $php_dir\$tool.bat" >$null 2>&1
} catch { }
}
if($tool -eq "phive") {
if($tool -eq "phan") {
Add-Extension fileinfo >$null 2>&1
Add-Extension ast >$null 2>&1
} elseif($tool -eq "phive") {
Add-Extension xml >$null 2>&1
} elseif($tool -eq "cs2pr") {
(Get-Content $php_dir/cs2pr).replace('exit(9)', 'exit(0)') | Set-Content $php_dir/cs2pr