Mantis - Quercus
Viewing Issue Advanced Details
5768 minor always 07-04-14 09:37 07-04-14 09:37
tobia  
 
normal  
new  
open  
none    
none  
0005768: ReflectionClass->getProperties() with an argument raises a warning
This affects the latest 4.0.39, but I couldn't find it in the version popup.

Calling getProperties() with a ReflectionProperty constant raises this warning:

    Warning: function 'getProperties' called with 1 arguments, but only expects 0 arguments

For example:

    ini_set("display_errors", "On");
    class MyClass {}
    new ReflectionClass('MyClass')->getProperties(ReflectionProperty::IS_PUBLIC);

This is triggered for example in Doctrine: http://www.doctrine-project.org/api/common/2.2/source-class-Doctrine.Common.Annotations.DocParser.html#445 [^]

There are no notes attached to this issue.