We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f715a1 commit 91e0e0eCopy full SHA for 91e0e0e
phpstan.el
@@ -259,6 +259,11 @@ it returns the value of `SOURCE' as it is."
259
((symbolp phpstan-level) (symbol-name phpstan-level))
260
(t phpstan-level)))
261
262
+(defun phpstan-analyze-file (file)
263
+ "Analyze a PHPScript FILE using PHPStan."
264
+ (interactive "fChoose a PHP script: ")
265
+ (compile (mapconcat #'shell-quote-argument (append (phpstan-get-command-args) (list file)) " ")))
266
+
267
(defun phpstan-get-executable ()
268
"Return PHPStan excutable file and arguments."
269
(cond
0 commit comments