Skip to content

Commit fa002a9

Browse files
authored
Merge pull request #535 from emacs-php/feature/null-assign-op
Add Null Coalescing Assignment Operator (??=) added in PHP 7.4
2 parents e696de8 + 843d419 commit fa002a9

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)