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 e55df75 commit 8650aa9Copy full SHA for 8650aa9
phpstan.el
@@ -312,6 +312,11 @@ it returns the value of `SOURCE' as it is."
312
"Read JSON string from BUFFER."
313
(with-current-buffer buffer
314
(goto-char (point-min))
315
+ ;; Ignore STDERR
316
+ (save-match-data
317
+ (when (search-forward-regexp "^{" nil t)
318
+ (backward-char 1)
319
+ (delete-region (point-min) (point))))
320
(if (eval-when-compile (and (fboundp 'json-serialize)
321
(fboundp 'json-parse-buffer)))
322
(with-no-warnings
0 commit comments