mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Changed conditional to work with default value as null
This commit is contained in:
parent
1f6b7b4788
commit
b4792d1cd5
@ -127,7 +127,7 @@ abstract class AbstractFormatter implements FormatterInterface
|
||||
{
|
||||
$array = array();
|
||||
foreach ($collection as $coll) {
|
||||
if('none' === $coll['annotation']->getSection()) {
|
||||
if(is_null($coll['annotation']->getSection())) {
|
||||
$array[$coll['resource']][] = $coll['annotation']->toArray();
|
||||
} else {
|
||||
$array[$coll['annotation']->getSection()][] = $coll['annotation']->toArray();
|
||||
|
Loading…
x
Reference in New Issue
Block a user