Skip to content

Commit d313790

Browse files
committed
Use bound-and-true-p instead of boundp and symbol-value
1 parent cbf2723 commit d313790

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lisp/php.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ it is the character that will terminate the string, or t if the string should be
220220

221221
(defsubst php-in-poly-php-html-mode ()
222222
"Return T if current buffer is in `poly-html-mode'."
223-
(and (boundp 'poly-php-html-mode)
224-
(symbol-value 'poly-php-html-mode)))
223+
(bound-and-true-p poly-php-html-mode))
225224

226225
(defconst php-beginning-of-defun-regexp
227226
"^\\s-*\\(?:\\(?:abstract\\|final\\|private\\|protected\\|public\\|static\\)\\s-+\\)*function\\s-+&?\\(\\(\\sw\\|\\s_\\)+\\)\\s-*("

0 commit comments

Comments
 (0)