php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64591 ReflectionClass::getMethods() accepts an integer, not a string
Submitted: 2013-04-05 15:19 UTC Modified: 2013-06-25 00:42 UTC
From: benjamin dot morel at strictcoding dot co dot uk Assigned: philip (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
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: benjamin dot morel at strictcoding dot co dot uk
New email:
PHP Version: OS:

 

 [2013-04-05 15:19 UTC] benjamin dot morel at strictcoding dot co dot uk
Description:
------------
Documentation page: http://www.php.net/manual/en/reflectionclass.getmethods.php

ReflectionClass::getMethods() accepts the following constants:

- ReflectionMethod::IS_STATIC
- ReflectionMethod::IS_PUBLIC
- etc.

Or any combination of them. These are all integers, thus the documentation is 
wrong.

Expected result:
----------------
public array ReflectionClass::getMethods ([ int $filter ] )

Actual result:
--------------
public array ReflectionClass::getMethods ([ string $filter ] )

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-25 00:42 UTC] philip@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: philip
 [2013-06-25 00:42 UTC] philip@php.net
This was fixed in the meantime:

http://svn.php.net/viewvc/phpdoc/en/trunk/reference/reflection/reflectionclass/get
methods.xml?r1=325878&r2=330252

Thank you for the bug report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 00:00:02 2026 UTC