php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53391 Scalar type hint reflection method name inconsistency
Submitted: 2010-11-23 20:52 UTC Modified: 2011-08-30 12:55 UTC
From: seva dot lapsha at gmail dot com Assigned:
Status: Not a bug Package: Reflection related
PHP Version: trunk-SVN-2010-11-23 (SVN) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: seva dot lapsha at gmail dot com
New email:
PHP Version: OS:

 

 [2010-11-23 20:52 UTC] seva dot lapsha at gmail dot com
Description:
------------
Scalar type hint implementation introduces inconsistency in type naming.
The canonic name for float/double/real is float.
But the introduced method for them is ::isDouble().

@see http://php.net/manual/en/language.types.float.php
@see http://php.net/manual/en/function.is-float.php
@see http://php.net/manual/en/function.is-double.php (alias)
@see http://php.net/manual/en/function.is-real.php (alias)
@see http://php.net/manual/en/function.floatval.php
@see http://php.net/manual/en/function.doubleval.php (alias)
@see http://php.net/manual/en/class.splfloat.php



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-30 12:55 UTC] bjori@php.net
-Status: Open +Status: Bogus
 [2011-08-30 12:55 UTC] bjori@php.net
Scalar type hints got removed
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Mar 24 19:01:25 2019 UTC