Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
db82518d
Commit
db82518d
authored
Nov 20, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed apidoc wrong property definedBy
fixes #5899
parent
6987ea20
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
extensions/apidoc/CHANGELOG.md
+1
-0
Context.php
extensions/apidoc/models/Context.php
+2
-2
No files found.
extensions/apidoc/CHANGELOG.md
View file @
db82518d
...
...
@@ -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)
...
...
extensions/apidoc/models/Context.php
View file @
db82518d
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment