Skip to content

Commit 330070d

Browse files
committed
Fix php-flymake-php-init for legacy flymake
1 parent 0902894 commit 330070d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lisp/php.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,9 @@ The order is reversed by calling as follows:
550550
551551
This is an alternative function of `flymake-php-init'.
552552
Look at the `php-executable' variable instead of the constant \"php\" command."
553-
(let* ((init (funcall (eval-when-compile
554-
(if (fboundp 'flymake-proc-php-init)
555-
'flymake-proc-php-init
556-
'flymake-php-init)))))
557-
(list php-executable (cdr init))))
553+
(let ((init (with-no-warnings (flymake-php-init))))
554+
(setf (car init) php-executable)
555+
init))
558556

559557
(defconst php-re-detect-html-tag-aggressive
560558
(eval-when-compile

0 commit comments

Comments
 (0)