File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -338,15 +338,17 @@ it returns the value of `SOURCE' as it is."
338
338
(defun phpstan-analyze-this-file ()
339
339
" Analyze current buffer-file using PHPStan."
340
340
(interactive )
341
- (let ((file (expand-file-name (or buffer-file-name
342
- (read-file-name " Choose a PHP script: " )))))
341
+ (let ((file (phpstan-normalize-path
342
+ (expand-file-name (or buffer-file-name
343
+ (read-file-name " Choose a PHP script: " ))))))
343
344
(compile (mapconcat #'shell-quote-argument
344
345
(phpstan-get-command-args :include-executable t :args (list file)) " " ))))
345
346
346
347
;;;### autoload
347
348
(defun phpstan-analyze-file (file )
348
349
" Analyze a PHP script FILE using PHPStan."
349
- (interactive (list (expand-file-name (read-file-name " Choose a PHP script: " ))))
350
+ (interactive (list (phpstan-normalize-path
351
+ (expand-file-name (read-file-name " Choose a PHP script: " )))))
350
352
(compile (mapconcat #'shell-quote-argument
351
353
(phpstan-get-command-args :include-executable t :args (list file)) " " )))
352
354
You can’t perform that action at this time.
0 commit comments