mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Prevent error "Undefined index" when no subtype provided
This commit is contained in:
parent
7c8b010215
commit
20f4cc673f
@ -534,7 +534,7 @@ class ApiDocExtractor
|
|||||||
{
|
{
|
||||||
foreach ($array as $name => $info) {
|
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']);
|
$array[$name]['dataType'] = $this->generateHumanReadableType($info['actualType'], $info['subType']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user