File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 61
61
(eval-when-compile
62
62
(require 'compat nil t )
63
63
(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)))
65
67
66
68
; ; Variables:
67
69
(defgroup phpstan nil
@@ -161,7 +163,7 @@ have unexpected behaviors or performance implications."
161
163
:group 'phpstan )
162
164
163
165
(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 ."
165
167
:type '(repeat string))
166
168
167
169
(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
570
572
(list (if current-prefix-arg 'this-line 'previous-line )))
571
573
(save-restriction
572
574
(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 ))
575
576
(padding (if (eq position 'this-line ) " " " " ))
576
- new-position new-point delete-region )
577
+ new-position new-point append )
577
578
(cl-multiple-value-setq (new-position new-point append ) (phpstan--check-existing-ignore-tag :in-previous nil ))
578
579
(when new-position
579
580
(setq position new-position))
You can’t perform that action at this time.
0 commit comments