RE: [PHP-DEV] [VOTE] Scalar Type Hints

From: Date: Fri, 13 Feb 2015 13:30:49 +0000
Subject: RE: [PHP-DEV] [VOTE] Scalar Type Hints
Groups: php.internals 
Request: Send a blank email to internals+get-82609@lists.php.net to get a copy of this message
> De : Dennis Birkholz [mailto:dennis@birkholz.biz] > > I did not follow the DoC-discussion so far but from a quick glance at > the list there are at least cases that need a further look: > > 1. There is no float (without !) in the list. It should be IS_LONG = yes > (if value does not exceed float boundaries), IS_DOUBLE = yes and > IS_STRING = yes (same as for IS_LONG). 'float' is an alias for 'number', which follows these rules. > 2. callable is missing a check for objects that contain __invoke() which > is also a valid callable. Right. Added this case. Thanks > > Greets > Dennis Birkholz

« previous php.internals (#82609) next »