mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Set the default section to null and added conditional back
This commit is contained in:
parent
301abdc1e7
commit
1f6b7b4788
@ -61,7 +61,7 @@ class ApiDoc
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $section = 'none';
|
||||
private $section = null;
|
||||
|
||||
/**
|
||||
* Extended documentation.
|
||||
@ -330,7 +330,10 @@ class ApiDoc
|
||||
$data['statusCodes'] = $statusCodes;
|
||||
}
|
||||
|
||||
$data['section'] = $this->section;
|
||||
if($section = $this->section) {
|
||||
$data['section'] = $section;
|
||||
}
|
||||
|
||||
$data['https'] = $this->https;
|
||||
|
||||
return $data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user