You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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)
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 examplenumber
is used in the definition of array_sum. Should phpDocumentor also support these other pseudo-types and variables?The text was updated successfully, but these errors were encountered: