diff --git a/lisp/php-mode.el b/lisp/php-mode.el index 9fc2b7b7..822a455a 100644 --- a/lisp/php-mode.el +++ b/lisp/php-mode.el @@ -458,7 +458,7 @@ PHP does not have an C-like \"enum\" keyword." php (append (c-lang-const c-class-decl-kwds) '("function"))) (c-lang-defconst c-modifier-kwds - php '("abstract" "const" "final" "static" "case")) + php '("abstract" "const" "final" "static" "case" "readonly")) (c-lang-defconst c-protection-kwds "Access protection label keywords in classes." diff --git a/tests/8.1/readonly.php b/tests/8.1/readonly.php new file mode 100644 index 00000000..b7487243 --- /dev/null +++ b/tests/8.1/readonly.php @@ -0,0 +1,20 @@ +