mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
apidoc: static methods do not define properties
This commit is contained in:
@ -162,6 +162,9 @@ class Context extends Component
|
||||
return;
|
||||
}
|
||||
foreach($class->getPublicMethods() as $name => $method) {
|
||||
if ($method->isStatic) {
|
||||
continue;
|
||||
}
|
||||
if (!strncmp($name, 'get', 3) && $this->paramsOptional($method)) {
|
||||
$propertyName = '$' . lcfirst(substr($method->name, 3));
|
||||
if (isset($class->properties[$propertyName])) {
|
||||
|
Reference in New Issue
Block a user