mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Sort the call map
Psalm's function signature map was based on an old ad hoc sorting order (Possibly the unix sorting utility?) Instead, sort by `strtolower(str_replace("'", "\x0", $functionKey))` (To group classes together, and global functions together, and alternates together, instead of mixing them) `phan/phan/internal/internalsignatures.php sort` was used to perform this sorting (It's hardcoded to expect src/Phan/Internal/FunctionSignatureMap.php, though) Other changes: - Add signature for `_()`, which is an alias of gettext() https://secure.php.net/manual/en/function.gettext.php#refsect1-function.gettext-notes - etsy/phan -> phan/phan - Mention that __construct has type void, not the class name. - nit: Change __halt_compiler to void.
This commit is contained in:
parent
74aa376ec7
commit
04d4c719f9