We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e224a90 commit f289114Copy full SHA for f289114
flycheck-phpstan.el
@@ -79,7 +79,9 @@
79
(erase-buffer)
80
(insert output)
81
(current-buffer)))
82
- (data (phpstan--parse-json json-buffer))
+ (data (if (string-prefix-p "{" output)
83
+ (phpstan--parse-json json-buffer)
84
+ (list (flycheck-error-new-at 1 1 'warning (string-trim output)))))
85
(errors (phpstan--plist-to-alist (plist-get data :files))))
86
(unless phpstan-disable-buffer-errors
87
(phpstan-update-ignorebale-errors-from-json-buffer errors))
0 commit comments