mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
#102 - Doh, PHP is not Python
This commit is contained in:
parent
035ebfc965
commit
b42db62be2
@ -77,7 +77,7 @@ class JmsMetadataParser implements ParserInterface
|
|||||||
if (!is_null($item->type)) {
|
if (!is_null($item->type)) {
|
||||||
$name = isset($item->serializedName) ? $item->serializedName : $item->name;
|
$name = isset($item->serializedName) ? $item->serializedName : $item->name;
|
||||||
|
|
||||||
$dataType = $this->processDataType($item->type ? is_string($item->type) : $item->type['name']);
|
$dataType = $this->processDataType(is_string($item->type) ? $item->type : $item->type['name']);
|
||||||
|
|
||||||
$params[$name] = array(
|
$params[$name] = array(
|
||||||
'dataType' => $dataType['normalized'],
|
'dataType' => $dataType['normalized'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user