Doc #64591 [NEW]: ReflectionClass::getMethods() accepts an integer, not a string

From: Date: Fri, 05 Apr 2013 15:19:20 +0000
Subject: Doc #64591 [NEW]: ReflectionClass::getMethods() accepts an integer, not a string
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9725@lists.php.net to get a copy of this message
From:             benjamin dot morel at strictcoding dot co dot uk
Operating system: Irrelevant
PHP version:      Irrelevant
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:ReflectionClass::getMethods() accepts an integer, not a string

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 bug report at https://bugs.php.net/bug.php?id=64591&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=64591&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=64591&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=64591&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64591&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64591&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64591&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64591&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64591&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64591&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64591&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=64591&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=64591&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64591&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64591&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64591&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64591&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64591&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64591&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64591&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64591&r=mysqlcfg



Thread (2 messages)

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