apidoc: static methods do not define properties

This commit is contained in:
Carsten Brandt
2014-01-29 02:38:54 +01:00
parent a7459c6aa2
commit bad5a1199f

View File

@ -162,6 +162,9 @@ class Context extends Component
return; return;
} }
foreach($class->getPublicMethods() as $name => $method) { foreach($class->getPublicMethods() as $name => $method) {
if ($method->isStatic) {
continue;
}
if (!strncmp($name, 'get', 3) && $this->paramsOptional($method)) { if (!strncmp($name, 'get', 3) && $this->paramsOptional($method)) {
$propertyName = '$' . lcfirst(substr($method->name, 3)); $propertyName = '$' . lcfirst(substr($method->name, 3));
if (isset($class->properties[$propertyName])) { if (isset($class->properties[$propertyName])) {