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 2a5f7f7 commit d435866Copy full SHA for d435866
php.el
@@ -244,8 +244,9 @@ can be used to match against definitions for that classlike."
244
(defun php-get-current-element (re-pattern)
245
"Return backward matched element by RE-PATTERN."
246
(save-excursion
247
- (when (re-search-backward re-pattern nil t)
248
- (match-string-no-properties 1))))
+ (save-match-data
+ (when (re-search-backward re-pattern nil t)
249
+ (match-string-no-properties 1)))))
250
251
;;; Provide support for Flymake so that users can see warnings and
252
;;; errors in real-time as they write code.
0 commit comments