mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-03 05:43:32 +03:00
Merge pull request #656 from soyuka/patch-1
Prevent error "Undefined index" when no subtype provided
This commit is contained in:
commit
0699c45dcc
1 changed files with 1 additions and 1 deletions
|
@ -534,7 +534,7 @@ class ApiDocExtractor
|
|||
{
|
||||
foreach ($array as $name => $info) {
|
||||
|
||||
if (empty($info['dataType'])) {
|
||||
if (empty($info['dataType']) && isset($info['subType'])) {
|
||||
$array[$name]['dataType'] = $this->generateHumanReadableType($info['actualType'], $info['subType']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue