Commit db82518d by Carsten Brandt

fixed apidoc wrong property definedBy

fixes #5899
parent 6987ea20
......@@ -5,6 +5,7 @@ Yii Framework 2 apidoc extension Change Log
-----------------------
- Bug #5623: Fixed crash when a class contains a setter that has no arguments e.g. `setXyz()` (cebe)
- Bug #5899: Incorrect class listed as `definedBy` reference for properties (cebe)
- Bug: Guide and API renderer now work with relative paths/URLs (cebe)
- Enh: Guide generator now skips `images` directory if it does not exist instead of throwing an error (cebe)
- Enh: Made `--guidePrefix` option available as a command line option (cebe)
......
......@@ -286,7 +286,7 @@ class Context extends Component
} else {
$class->properties[$propertyName] = new PropertyDoc(null, $this, [
'name' => $propertyName,
'definedBy' => $class->name,
'definedBy' => $method->definedBy,
'sourceFile' => $class->sourceFile,
'visibility' => 'public',
'isStatic' => false,
......@@ -315,7 +315,7 @@ class Context extends Component
$param = $this->getFirstNotOptionalParameter($method);
$class->properties[$propertyName] = new PropertyDoc(null, $this, [
'name' => $propertyName,
'definedBy' => $class->name,
'definedBy' => $method->definedBy,
'sourceFile' => $class->sourceFile,
'visibility' => 'public',
'isStatic' => false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment