phpstan/phpstan-shim

On windows: "'bash' is not recognized as an internal or external command,"

dakorpar opened this issue · 3 comments

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...

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.

@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/../phpstan/phpstan-shim/phpstan
bash "%BIN_TARGET%" %*

Please try the latest commit, I tried something: 9677190