[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] Doc #75374 [Opn->Csd]: ReflectionParameter::getDeclaringClass() can return n ull
From:       vrana () php ! net
Date:       2018-01-29 22:53:31
Message-ID: 201801292253.w0TMrV5M022635 () srgv2 ! php ! net
[Download RAW message or body]

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

 ID:                 75374
 Updated by:         vrana@php.net
 Reported by:        benjamin dot morel at gmail dot com
 Summary:            ReflectionParameter::getDeclaringClass() can return
                     n ull
-Status:             Open
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   N/A
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        vrana
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2018-01-29 22:53:27] vrana@php.net

Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=344084
Log: Document return value for functions (bug #75374)

------------------------------------------------------------------------
[2017-10-13 17:43:10] benjamin dot morel at gmail dot com

Description:
------------
when called on a function (not method) parameter, ReflectionParameter::getDeclaringClass() returns null.

The documentation should reflect this, as it currently implies that a ReflectionClass is always returned.

Expected result:
----------------
public ReflectionClass|null ReflectionParameter::getDeclaringClass ( void )

Actual result:
--------------
public ReflectionClass ReflectionParameter::getDeclaringClass ( void )


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



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

-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic