v0.2.7--level used: defaultIt does not recognize spaces in the directory name on command:
php artisan code:analyse
Image of error:
https://prnt.sc/knru9m
That's a feature of bash, you need to quote the path - php artisan code:analyse '/d/E/Web - Projects/xxx'.
@ondrejmirtes often it works with quotes.
I tried '', "" and with \ on php artisan code:analyse -c.
Still have same problem.
Oh, I get it, Larastan does not escape the parameter that it passes to PHPStan.
@ondrejmirtes You mean http://php.net/manual/en/function.escapeshellarg.php?
Yes, all arguments should be escaped with this.
On Sat, 1 Sep 2018 at 21:34, Nuno Maduro notifications@github.com wrote:
@ondrejmirtes https://github.com/ondrejmirtes You mean
http://php.net/manual/en/function.escapeshellarg.php?—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/nunomaduro/larastan/issues/130#issuecomment-417882140,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGZuJx_-oZP7QLoBLUU3mD9GRS0abUxks5uWuFcgaJpZM4WPZo9
.>
Ondřej Mirtes
@Necko1996 @ondrejmirtes This issue has been fixed.
Most helpful comment
Oh, I get it, Larastan does not escape the parameter that it passes to PHPStan.