Skip to content

Commit 843d419

Browse files
committed
Add Null Coalescing Assignment Operator (??=) added in PHP 7.4
1 parent e696de8 commit 843d419

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

php-mode.el

+1-3
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,7 @@ In that case set to `NIL'."
464464
php t)
465465

466466
(c-lang-defconst c-assignment-operators
467-
;; falls back to java, so no need to specify the language
468-
php (append (remove ">>>=" (c-lang-const c-assignment-operators))
469-
'(".=")))
467+
php '("=" "*=" "/=" "%=" "+=" "-=" ">>=" "<<=" "&=" "^=" "|=" ".=" "??="))
470468

471469
(c-lang-defconst beginning-of-defun-function
472470
php 'php-beginning-of-defun)

0 commit comments

Comments
 (0)