Fix native (built-in) type names

Fix phpinspect-native-types to valid PHP built-in type names.

See the code below for the types that can be described as valid return types:
https://3v4l.org/fJgLA#v8.0.10
remotes/local/master
Kenta Usami 3 years ago committed by Hugo Thunnissen
parent d6c63ef6f4
commit 0350069e34

@ -89,7 +89,9 @@ candidate. Candidates can be indexed functions and variables.")
(message "Disabled phpinspect logging.")))
(defconst phpinspect-native-types
'("int" "string" "bool" "boolean" "iterator" "array" "float" "void"))
;; self, parent and resource are not valid type name.
;; see https://www.php.net/manual/ja/language.types.declarations.php
'("array" "bool" "callable" "float" "int" "iterable" "mixed" "object" "string" "void"))
(eval-when-compile
(defun phpinspect--word-end-regex ()

Loading…
Cancel
Save