[PropertyInfo] Exclude static methods form properties guessing
This commit is contained in:
parent
e18281eef6
commit
190c736d3c
|
@ -68,6 +68,10 @@ class ReflectionExtractor implements PropertyListExtractorInterface, PropertyTyp
|
|||
}
|
||||
|
||||
foreach ($reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $reflectionMethod) {
|
||||
if ($reflectionMethod->isStatic()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$propertyName = $this->getPropertyName($reflectionMethod->name);
|
||||
if (!$propertyName || isset($properties[$propertyName])) {
|
||||
continue;
|
||||
|
|
|
@ -51,6 +51,10 @@ class Dummy extends ParentDummy
|
|||
*/
|
||||
public $B;
|
||||
|
||||
public static function getStatic()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* A.
|
||||
*
|
||||
|
|
Reference in New Issue