rfc:parameter_type_casting_hints

This is an old revision of the document!


Request for Comments: 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)