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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC