[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/php-mode c2f416b3c9 3/6: Update php-phpdoc-type-names to s
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/php-mode c2f416b3c9 3/6: Update php-phpdoc-type-names to support PHPStan 2.0.4 |
Date: |
Thu, 19 Dec 2024 01:00:46 -0500 (EST) |
branch: elpa/php-mode
commit c2f416b3c94ff47319fefa839579e190c973dbb0
Author: USAMI Kenta <tadsan@zonu.me>
Commit: USAMI Kenta <tadsan@zonu.me>
Update php-phpdoc-type-names to support PHPStan 2.0.4
---
lisp/php-mode.el | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/lisp/php-mode.el b/lisp/php-mode.el
index 6a6523e154..867a84fe6e 100644
--- a/lisp/php-mode.el
+++ b/lisp/php-mode.el
@@ -1301,18 +1301,20 @@ for \\[find-tag] (which see)."
;; Font Lock
(defconst php-phpdoc-type-names
- (list "string" "integer" "int" "boolean" "bool" "float"
- "double" "object" "mixed" "array" "resource"
- "void" "null" "false" "true" "self" "static"
- "callable" "iterable" "number"
- ;; PHPStan and Psalm types
- "array-key" "associative-array" "callable-array" "callable-object"
- "callable-string" "class-string" "empty" "enum-string" "list"
- "literal-string" "negative-int" "non-positive-int" "non-negative-int"
- "never" "never-return" "never-returns" "no-return" "non-empty-array"
- "non-empty-list" "non-empty-string" "non-falsy-string"
- "numeric" "numeric-string" "positive-int" "scalar"
- "trait-string" "truthy-string" "key-of" "value-of")
+ '(;; PHPStan and Psalm types
+ "__stringandstringable" "array" "array-key" "associative-array" "bool"
"boolean"
+ "callable" "callable-array" "callable-object" "callable-string"
"class-string"
+ "closed-resource" "double" "empty" "empty-scalar" "enum-string" "false"
"float"
+ "int" "integer" "interface-string" "iterable" "list" "literal-string"
"lowercase-string"
+ "mixed" "negative-int" "never" "never-return" "never-returns" "no-return"
"non-empty-array"
+ "non-empty-list" "non-empty-literal-string" "non-empty-lowercase-string"
"non-empty-mixed"
+ "non-empty-scalar" "non-empty-string" "non-empty-uppercase-string"
"non-falsy-string"
+ "non-negative-int" "non-positive-int" "non-zero-int" "noreturn" "null"
"number" "numeric"
+ "numeric-string" "object" "open-resource" "parent" "positive-int"
"pure-callable"
+ "pure-closure" "resource" "scalar" "self" "static" "string" "trait-string"
"true"
+ "truthy-string" "uppercase-string" "void"
+ ;; PHPStan Generic Types
+ "key-of" "value-of" "int-mask-of" "int-mask" "__benevolent"
"template-type" "new")
"A list of type and pseudotype names that can be used in PHPDoc.")
(make-obsolete-variable 'php-phpdoc-type-keywords 'php-phpdoc-type-names
"1.24.2")
- [nongnu] elpa/php-mode updated (31f702ee2d -> 69e9c16fda), ELPA Syncer, 2024/12/19
- [nongnu] elpa/php-mode c2f416b3c9 3/6: Update php-phpdoc-type-names to support PHPStan 2.0.4,
ELPA Syncer <=
- [nongnu] elpa/php-mode 910391c092 2/6: Merge pull request #796 from emacs-php/fix/when-let, ELPA Syncer, 2024/12/19
- [nongnu] elpa/php-mode 69e9c16fda 6/6: Fix malformed when-let* again, ELPA Syncer, 2024/12/19
- [nongnu] elpa/php-mode a59e92e233 1/6: Use when-let* instead of when-let to support Emacs 30, ELPA Syncer, 2024/12/19
- [nongnu] elpa/php-mode c716ba9e0a 4/6: Merge pull request #795 from emacs-php/update/phpdoc-types, ELPA Syncer, 2024/12/19
- [nongnu] elpa/php-mode 9f0695e705 5/6: Fix malformed when-let*, ELPA Syncer, 2024/12/19