Skip to content

Commit

Permalink
Add mixed type
Browse files Browse the repository at this point in the history
"mixed" type declare is added in PHP 8.0.

https://wiki.php.net/rfc/mixed_type_v2
  • Loading branch information
zonuexe committed Jul 25, 2020
1 parent 4369c21 commit 48b2cbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ In that case set to `NIL'."

(c-lang-defconst c-primitive-type-kwds
php '("int" "integer" "bool" "boolean" "float" "double" "real"
"string" "object" "void"))
"string" "object" "void" "mixed"))

(c-lang-defconst c-class-decl-kwds
"Keywords introducing declarations where the following block (if any)
Expand Down
1 change: 1 addition & 0 deletions tests/lang/types/keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
string;
object;
resource;
mixed;

0 comments on commit 48b2cbc

Please sign in to comment.