rfc:parameter_type_casting_hints
This is an old revision of the document!
Request for Comments: Parameter Type Casting Hints
- Version: 0.1
- Date: 2012-03-03
- Author: Anthony Ferrara ircmaxell@php.net
- Status: In Draft
- First Published at: https://wiki.php.net/rfc/parameter_type_casting_hints
Introduction
Currently, PHP has no way to provide type hinting for function parameters which are not classes or arrays. This is on often requested feature that has been discussed on the internals list many many times. This RFC discusses one implementation of this feature that still attempts to remain in the spirit of PHP's dynamic type nature.
Philosophy
More
Changelog
rfc/parameter_type_casting_hints.1330821509.txt.gz · Last modified: 2017/09/22 13:28 (external edit)