rfc:mixed-typehint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:mixed-typehint [2018/06/29 13:46] – typo majklrfc:mixed-typehint [2018/07/01 16:16] – Fix void* type carusogabriel
Line 67: Line 67:
 As of PHP 7.1, PHP has a special ''void'' type. ''Void'' is not a regular type and is only valid for return types to specify that //nothing is returned//. As of PHP 7.1, PHP has a special ''void'' type. ''Void'' is not a regular type and is only valid for return types to specify that //nothing is returned//.
  
-In some other languages like C/C++ ''void'' can also be used as a //type// that accepts //any// type.+In some other languages like C/C++ ''void*'' can also be used as a //type// that accepts //any// type.
 This essentially matches the behavior of ''mixed'' in PHP. This essentially matches the behavior of ''mixed'' in PHP.
  
rfc/mixed-typehint.txt · Last modified: 2020/07/22 09:03 by kocsismate