mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
#102 - Fix for JMS @Type change
This commit is contained in:
parent
5610c032ae
commit
035ebfc965
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
|||||||
vendor/
|
vendor/
|
||||||
composer.lock
|
composer.lock
|
||||||
phpunit.xml
|
phpunit.xml
|
||||||
|
|
||||||
|
*.iml
|
||||||
|
.idea/
|
||||||
|
@ -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);
|
$dataType = $this->processDataType($item->type ? is_string($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