-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support @param number #294
Comments
https://github.com/TysonAndre/phan/pull/4/files is one way of doing this (handle immediately after parsing doc comment) (It's mostly meant for old invalid phpdoc, so it doesn't bother to expand
|
E.g. if a codebase frequently uses `@param number $x`, then the maintainers may wish to add the following line to .phan/config.php `'phpdoc_type_mapping' => ['number' => 'int|float'],` Add test case to the rewriting_test folder.
E.g. if a codebase frequently uses `@param number $x`, then the maintainers may wish to add the following line to .phan/config.php `'phpdoc_type_mapping' => ['number' => 'int|float'],` Add test case to the rewriting_test folder.
E.g. if a codebase frequently uses `@param number $x`, then the maintainers may wish to add the following line to .phan/config.php `'phpdoc_type_mapping' => ['number' => 'int|float'],` Add test case to the rewriting_test folder.
Workaround for #294 : Add 'phpdoc_type_mapping' setting
See PR #1112, the In order to avoid unintuitive issues similar to #781 , I'd rather be conservative about adding types that aren't in phpdoc2 or other standards |
/** @param number */
is some times used to describeint|float
, eg:https://github.com/symfony/intl/blob/master/NumberFormatter/NumberFormatter.php#L360
it's also used in the documentation : http://php.net/manual/en/numberformatter.format.php and I think I read discussion in php internals about adding it to PHP so it might be a good idea to support it as an alias to
int|float
The text was updated successfully, but these errors were encountered: