thomasbachem / php-short-array-syntax-converter

Command-line script to convert PHP's array() syntax to PHP 5.4's short array syntax []

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect windows command line

timint opened this issue · comments

Thanks for this lovely script that saved me tons of hours and seems to make no mistakes.

Here is a fix for windows users:

FOR /f "tokens=*" %a in ('dir *.php /S/B') DO php convert.php %a -w

Should be:

FOR /f "tokens=*" %a in ('dir *.php /S/B') DO php convert.php -w "%a"