Doc #64591 [Opn->Csd]: ReflectionClass::getMethods() accepts an integer, not a string

From: Date: Tue, 25 Jun 2013 00:42:28 +0000
Subject: Doc #64591 [Opn->Csd]: ReflectionClass::getMethods() accepts an integer, not a string
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9986@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64591&edit=1

 ID:                 64591
 Updated by:         philip@php.net
 Reported by:        benjamin dot morel at strictcoding dot co dot uk
 Summary:            ReflectionClass::getMethods() accepts an integer,
                     not a string
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   Irrelevant
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        philip
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2013-04-05 15:19:20] 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 ] )


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64591&edit=1


Thread (2 messages)

« previous php.doc.bugs (#9986) next »