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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 22:01:26 2024 UTC