File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 6161(eval-when-compile
6262 (require 'compat nil t )
6363 (require 'php )
64- (require 'json ))
64+ (require 'json )
65+ (declare-function 'tramp-dissect-file-name " tramp" '(name &optional nodefault))
66+ (declare-function 'tramp-file-name-localname " tamp" '(cl-x)))
6567
6668; ; Variables:
6769(defgroup phpstan nil
@@ -161,7 +163,7 @@ have unexpected behaviors or performance implications."
161163 :group 'phpstan )
162164
163165(defcustom phpstan-not-ignorable-identifiers '(" ignore.parseError" )
164- " A list of identifiers that are prohibited from being added to the @phpstan-ignore tag ."
166+ " Lists identifiers prohibited from being added to @phpstan-ignore tags ."
165167 :type '(repeat string))
166168
167169(defvar-local phpstan--use-xdebug-option nil )
@@ -570,10 +572,9 @@ POSITION determines where to insert the comment and can be either `this-line' or
570572 (list (if current-prefix-arg 'this-line 'previous-line )))
571573 (save-restriction
572574 (widen )
573- (let ((pos (point ))
574- (identifiers (cl-set-difference (alist-get (phpstan--current-line) phpstan--ignorable-errors) phpstan-not-ignorable-identifiers :test #'equal ))
575+ (let ((identifiers (cl-set-difference (alist-get (phpstan--current-line) phpstan--ignorable-errors) phpstan-not-ignorable-identifiers :test #'equal ))
575576 (padding (if (eq position 'this-line ) " " " " ))
576- new-position new-point delete-region )
577+ new-position new-point append )
577578 (cl-multiple-value-setq (new-position new-point append ) (phpstan--check-existing-ignore-tag :in-previous nil ))
578579 (when new-position
579580 (setq position new-position))
You can’t perform that action at this time.
0 commit comments