Skip to content

Commit 5834268

Browse files
committed
Fix to avoid (php-set-style "nil") being called
1 parent 9a90bbf commit 5834268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

php-mode.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,8 @@ After setting the stylevars run hooks according to STYLENAME
10651065
(when php-mode--delayed-set-style
10661066
(let ((coding-style (or (and (boundp 'php-project-coding-style) php-project-coding-style)
10671067
php-mode-coding-style)))
1068-
(prog1 (php-set-style (symbol-name coding-style))
1068+
(prog1 (when coding-style
1069+
(php-set-style (symbol-name coding-style)))
10691070
(remove-hook 'hack-local-variables-hook #'php-mode-set-style-delay)))))
10701071

10711072
(defvar php-mode-syntax-table

0 commit comments

Comments
 (0)