Skip to content

Commit 2200791

Browse files
committed
Add autoload cookies to interactive commands
1 parent 8928206 commit 2200791

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phpstan.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,15 @@ it returns the value of `SOURCE' as it is."
284284
"Return --memory-limit value."
285285
phpstan-memory-limit)
286286

287+
;;;###autoload
287288
(defun phpstan-analyze-this-file ()
288289
"Analyze current buffer-file using PHPStan."
289290
(interactive)
290291
(let ((file (expand-file-name (or buffer-file-name
291292
(read-file-name "Choose a PHP script: ")))))
292293
(compile (mapconcat #'shell-quote-argument (append (phpstan-get-command-args t) (list file)) " "))))
293294

295+
;;;###autoload
294296
(defun phpstan-analyze-file (file)
295297
"Analyze a PHP script FILE using PHPStan."
296298
(interactive (list (expand-file-name (read-file-name "Choose a PHP script: "))))

0 commit comments

Comments
 (0)