Skip to content
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

Pseudo-types and variables from php.net #15

Closed
spencerbaynton opened this issue Jan 24, 2016 · 2 comments
Closed

Pseudo-types and variables from php.net #15

spencerbaynton opened this issue Jan 24, 2016 · 2 comments

Comments

@spencerbaynton
Copy link

php.net has a page Pseudo-types and variables used in this documentation. It includes some of the types phpDocumentor already includes (i.e. mixed, callback, void), but also includes others like number (indicates that a parameter can be either integer or float). For example number is used in the definition of array_sum. Should phpDocumentor also support these other pseudo-types and variables?

@mvriel
Copy link
Member

mvriel commented Jan 28, 2016

As far as I can see the only one not supported is the number and $... mentions. The problem is that any added type may not be used as a class name anymore and since number is not an official keyword (and classes exist with that name) and its relatively low added value I prefer not to add it at this stage.

Should number become a keyword in the future we can reconsider this as we can then safely use it without ambiguity for resolving type vs classnames.

The $... mention is more of an operator/modifier than a type and with phpDocumentor we have chosen to not handle this in the TypeResolver but to handle that in the project itself (since it signifies a repetition of variables and not a type for a single modifier)

@GrahamCampbell
Copy link
Contributor

I think this can be safely closed?

@ashnazg ashnazg closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants