On windows: "'bash' is not recognized as an internal or external command,"
dakorpar opened this issue · 3 comments
dakorpar commented
Not sure if problem is in this package or phpstan actually but I get error when runing
vendor\bin\phpstan.bat
'bash' is not recognized as an internal or external command,
operable program or batch file.
edit:
works when calling vendor\bin\phpstan.phar.bat, but not really sure why upper isn't... I believe it's still a bug...
ondrejmirtes commented
Hi, can you show me how vendor\bin\phpstan.bat
looks like? It's autogenerated by Composer so I'd first verify that it doesn't output some gibberish.
dakorpar commented
@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/../phpstan/phpstan-shim/phpstan
bash "%BIN_TARGET%" %*
ondrejmirtes commented
Please try the latest commit, I tried something: 9677190