Skip to content

Commit 9627260

Browse files
committed
Add level params
1 parent 403f1e1 commit 9627260

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ob-phpstan.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@
5050
"Org mode fish evaluate function"
5151
(let ((tmp-file (org-babel-temp-file "phpstan-" ".php"))
5252
(body (concat "<?php\n" body))
53-
(level org-babel-phpstan-level))
53+
(level (or (cdr (assoc :level params)) org-babel-phpstan-level)))
5454
(with-temp-file tmp-file (insert (org-babel-expand-body:generic body params)))
55-
5655
(org-babel-eval (format "%s analyze %s --level %s"
5756
org-babel-phpstan-command
5857
(org-babel-process-file-name tmp-file)

0 commit comments

Comments
 (0)